dart-sdk/pkg
Dan Rubel e4c3fa0a9c Improve recovery when parsing named constructor invocation with invalid type arguments
The parser now generates a ConstructorWithTypeArguments error and a new
handleInvalidTypeArguments event after a begin/endTypeArguments event pair
when those type arguments are in a syntatically invalid location.

For example: `new C.n<int>();` in
```
class C<T> { T f; C.n() {} }
main() { var x = new C.n<int>(); }

Most listeners handle this event by dropping the invalid type arguments,
but AstBuilder now preserves those invalid type arguments in the AST
to support better code quick-fixes/quick-assists/refactoring.

Change-Id: I5b22bd4903cd9ee3645936b9a108598b603cf9ca
Reviewed-on: https://dart-review.googlesource.com/c/79300
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-10-11 19:57:22 +00:00
..
analysis_server Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
analysis_server_client
analyzer Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
analyzer_cli
analyzer_fe_comparison
analyzer_plugin
async_helper
build_integration
compiler
dart2js_tools
dart_internal
dev_compiler
diagnostic
expect
front_end Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
js
js_ast
kernel
meta
microlytics
smith
sourcemap_testing
status_file
telemetry
testing
vm
.gitignore
BUILD.gn
pkg.status