mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +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_server | ||
analysis_server_client | ||
analyzer | ||
analyzer_cli | ||
analyzer_fe_comparison | ||
analyzer_plugin | ||
async_helper | ||
build_integration | ||
compiler | ||
dart2js_tools | ||
dart_internal | ||
dev_compiler | ||
diagnostic | ||
expect | ||
front_end | ||
js | ||
js_ast | ||
kernel | ||
meta | ||
microlytics | ||
smith | ||
sourcemap_testing | ||
status_file | ||
telemetry | ||
testing | ||
vm | ||
.gitignore | ||
BUILD.gn | ||
pkg.status |