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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ParserTestCase.java

Issue 262253002: Add flag to AnalysisOptions to be able to disable deferred loading. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase with bleeding_edge, updated status files not to break build Created 6 years, 7 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
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ParserTestCase.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ParserTestCase.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ParserTestCase.java
index f7e30edca871c145ebf8a5924cf1b898274c6d86..e45a8ec063bf894b82c97b1b2aaa9a11ac24603e 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ParserTestCase.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ParserTestCase.java
@@ -147,6 +147,7 @@ public class ParserTestCase extends EngineTestCase {
listener.setLineInfo(new TestSource(), scanner.getLineStarts());
Token token = scanner.tokenize();
Parser parser = new Parser(null, listener);
+ parser.setParseDeferredLibraries(true);
CompilationUnit unit = parser.parseCompilationUnit(token);
assertNotNull(unit);
listener.assertErrorsWithCodes(errorCodes);
@@ -253,6 +254,7 @@ public class ParserTestCase extends EngineTestCase {
//
Parser parser = new Parser(null, listener);
parser.setParseFunctionBodies(parseFunctionBodies);
+ parser.setParseDeferredLibraries(true);
Object result = invokeParserMethodImpl(parser, methodName, objects, tokenStream);
//
// Partially test the results.

Powered by Google App Engine
This is Rietveld 408576698