mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:42:11 +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> |
||
---|---|---|
.. | ||
analysis_driver | ||
messages | ||
summary | ||
task_dependency_graph | ||
test_log_parser | ||
fasta_migration_progress.sh | ||
generate_files |