Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2932723003: Complain about incorrect use of null-aware operations. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/parser/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index 61e9506ee85292badebb4c7b7777e84946fbe566..deb86f89dd882089b397436f05b859962a81ff0b 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -51,6 +51,7 @@ import '../fasta_codes.dart'
codeRequiredParameterWithDefault,
codeSetterNotSync,
codeStackOverflow,
+ codeSuperNullAware,
codeTypeAfterVar,
codeTypeRequired,
codeUnexpectedToken,
@@ -3057,6 +3058,8 @@ class Parser {
listener.handleNoTypeArguments(token);
token = parseArguments(token);
listener.endSend(beginToken, token);
+ } else if (optional("?.", token)) {
+ reportRecoverableErrorCode(token, codeSuperNullAware);
}
return token;
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698