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

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

Issue 1408043002: Move native and js interop properties from the element model to the JS backend (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/parser_helper.dart
diff --git a/tests/compiler/dart2js/parser_helper.dart b/tests/compiler/dart2js/parser_helper.dart
index 572a082ffaa0ddbd823ac9908f43115085623c58..eeba1f9a6fd1086ae89e7bd471ebe77cbfc77ca7 100644
--- a/tests/compiler/dart2js/parser_helper.dart
+++ b/tests/compiler/dart2js/parser_helper.dart
@@ -99,9 +99,9 @@ Node parseBodyCode(String text, Function parseMethod,
Uri uri = new Uri(scheme: "source");
Script script = new Script(uri, uri,new MockFile(text));
LibraryElement library = new LibraryElementX(script);
- library.canUseNative = true;
- NodeListener listener =
- new NodeListener(reporter, library.entryCompilationUnit);
+ NodeListener listener = new NodeListener(
+ new ScannerOptions(canUseNative: true),
+ reporter, library.entryCompilationUnit);
Parser parser = new Parser(listener);
Token endToken = parseMethod(parser, tokens);
assert(endToken.kind == EOF_TOKEN);
@@ -147,7 +147,9 @@ Link<Element> parseUnit(String text, Compiler compiler,
var unit = new CompilationUnitElementX(script, library);
int id = 0;
DiagnosticReporter reporter = compiler.reporter;
- ElementListener listener = new ElementListener(reporter, unit, () => id++);
+ ElementListener listener = new ElementListener(
+ compiler.parsing.getScannerOptionsFor(library),
+ reporter, unit, () => id++);
PartialParser parser = new PartialParser(listener);
reporter.withCurrentElement(unit, () => parser.parseUnit(tokens));
return unit.localMembers;
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698