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

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

Issue 1864433004: Repeats and fixes the changes landed & reverted as CL 1789553003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updates to external dependents Created 4 years, 8 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 | « tests/compiler/dart2js/partial_parser_test.dart ('k') | tests/compiler/dart2js/unparser2_test.dart » ('j') | 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 1d3e26d5784e7810f7b9a058db7bf0a57e4dfaaf..446062feffe6474a62c2bba4ba1d3a9c6fb33984 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -26,6 +26,7 @@ import 'package:compiler/src/script.dart';
import 'package:compiler/src/util/util.dart';
import 'mock_compiler.dart';
+import 'options_helper.dart';
import 'parser_helper.dart';
final MessageKind NOT_ASSIGNABLE = MessageKind.NOT_ASSIGNABLE;
@@ -2555,7 +2556,7 @@ analyze(MockCompiler compiler,
Token tokens = scan(text);
NodeListener listener = new NodeListener(
const ScannerOptions(), compiler.reporter, null);
- Parser parser = new Parser(listener);
+ Parser parser = new Parser(listener, new MockParserOptions());
parser.parseStatement(tokens);
Node node = listener.popNode();
Element compilationUnit =
@@ -2601,7 +2602,7 @@ analyzeIn(MockCompiler compiler,
Token tokens = scan(text);
NodeListener listener = new NodeListener(
const ScannerOptions(), compiler.reporter, null);
- Parser parser = new Parser(listener,
+ Parser parser = new Parser(listener, new MockParserOptions(),
asyncAwaitKeywordsEnabled: element.asyncMarker != AsyncMarker.SYNC);
parser.parseStatement(tokens);
Node node = listener.popNode();
« no previous file with comments | « tests/compiler/dart2js/partial_parser_test.dart ('k') | tests/compiler/dart2js/unparser2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698