dart-sdk/pkg/analyzer/lib
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
..
context
dart Remove optional argument from FunctionTypeImpl.forTypedef. 2018-10-11 17:36:20 +00:00
error Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
exception
file_system Fix Analyzer tests on Windows bot. 2018-10-01 01:02:46 +00:00
instrumentation
plugin
source Downgrade WRONG_NUMBER_OF_TYPE_ARGUMENTS_CONSTRUCTOR to warning. 2018-09-12 19:11:26 +00:00
src Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
task
analyzer.dart Prep for analyzer 0.32.2 2018-06-26 19:59:49 +00:00