mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:58:13 +00:00
e4c3fa0a9c
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> |
||
---|---|---|
.. | ||
dart | ||
error | ||
file_system | ||
generated | ||
instrumentation | ||
source | ||
src | ||
cancelable_future_test.dart | ||
embedder_tests.dart | ||
parse_compilation_unit_test.dart | ||
resource_utils.dart | ||
test_all.dart | ||
utils.dart |