1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00
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 Remove more uses of isInstanceOf 2018-07-03 20:32:26 +00:00
analyzer Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
analyzer_cli Hook up FixProcessor to fix errors in dartfix 2018-10-10 16:52:16 +00:00
analyzer_fe_comparison Remove TargetFlags.strongMode 2018-10-10 12:11:41 +00:00
analyzer_plugin Fix cast exception in OpTypeAstVisitor 2018-10-09 18:40:19 +00:00
async_helper Fix #33415 no error for awaiting a void expression. 2018-07-24 19:31:57 +00:00
build_integration pkg:build_integration: clarify that' it's not planned to be published 2018-06-26 01:12:57 +00:00
compiler fix some typos 2018-10-10 19:15:30 +00:00
dart_internal Make warning more warning-y. 2018-03-02 02:04:44 +00:00
dart2js_tools Move deobfuscation tools to the SDK repo 2018-08-09 22:55:04 +00:00
dev_compiler [dartdevc] fix for-in loop variable shadowing a var used in initialzer 2018-10-11 17:07:39 +00:00
diagnostic Create a package for shared diagnostics 2018-09-27 16:23:20 +00:00
expect fix some typos 2018-10-10 19:15:30 +00:00
front_end Improve recovery when parsing named constructor invocation with invalid type arguments 2018-10-11 19:57:22 +00:00
js pkg/js: fix pubspec author 2018-07-18 21:36:10 +00:00
js_ast fix some typos 2018-10-10 19:15:30 +00:00
kernel [vm/tfa] Implementation of type arguments tracking in TFA. 2018-10-11 19:09:42 +00:00
meta Revert "[dart2js] Simplify noInline / tryInline annotations" 2018-09-25 22:11:42 +00:00
microlytics
smith Lay the groundwork for comparing language_2 compilation results between analyzer and CFE. 2018-09-08 15:25:05 +00:00
sourcemap_testing Initial support for inlining-data in source-maps. 2018-07-31 21:41:50 +00:00
status_file fix some typos 2018-10-10 19:15:30 +00:00
telemetry Upgrade pubspec constraints. 2018-07-23 16:44:39 +00:00
testing Fix broken 'fasta testing sdk'. 2018-09-27 13:08:47 +00:00
vm [vm/tfa] Implementation of type arguments tracking in TFA. 2018-10-11 19:09:42 +00:00
.gitignore
BUILD.gn
pkg.status Update status entries for renamed test (pkg/front_end hot_reload_e2e_test) 2018-10-05 14:24:41 +00:00