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

Unified Diff: tests/compiler/dart2js/type_checker_test.dart

Issue 2759623003: Track async state in parser. (Closed)
Patch Set: Created 3 years, 9 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/source/diet_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index b41971d15a67460ac99c13152433b41e19e06351..644f3d1387355367622c6dcd57c7c978d7b46fd1 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -2768,8 +2768,8 @@ analyzeIn(MockCompiler compiler, FunctionElement element, String text,
Token tokens = scan(text);
NodeListener listener =
new NodeListener(const ScannerOptions(), compiler.reporter, null);
- Parser parser = new Parser(listener,
- asyncAwaitKeywordsEnabled: element.asyncMarker != AsyncMarker.SYNC);
+ Parser parser = new Parser(listener)
+ ..asyncState = element.asyncMarker.asyncParserState;
parser.parseStatement(tokens);
Node node = listener.popNode();
TreeElements elements = compiler.resolveNodeStatement(node, element);
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698