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

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

Issue 11293244: Implement --analyze-all option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correctly parse metadata Created 8 years, 1 month 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: dart/tests/compiler/dart2js/mock_compiler.dart
diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
index 77a73f261a0b83d0d676a152ee90e440431c9732..889874c57bd274ab467587b58a08104747f003e8 100644
--- a/dart/tests/compiler/dart2js/mock_compiler.dart
+++ b/dart/tests/compiler/dart2js/mock_compiler.dart
@@ -85,17 +85,21 @@ class MockCompiler extends Compiler {
String interceptorsSource: DEFAULT_INTERCEPTORSLIB,
bool enableTypeAssertions: false,
bool enableMinification: false,
- bool enableConcreteTypeInference: false})
+ bool enableConcreteTypeInference: false,
+ bool analyzeAll: false})
: warnings = [], errors = [],
sourceFiles = new Map<String, SourceFile>(),
super(enableTypeAssertions: enableTypeAssertions,
enableMinification: enableMinification,
- enableConcreteTypeInference: enableConcreteTypeInference) {
+ enableConcreteTypeInference: enableConcreteTypeInference,
+ analyzeAll: analyzeAll) {
coreLibrary = createLibrary("core", coreSource);
// We need to set the assert method to avoid calls with a 'null'
// target being interpreted as a call to assert.
jsHelperLibrary = createLibrary("helper", helperSource);
importHelperLibrary(coreLibrary);
+ libraryLoader.importLibrary(jsHelperLibrary, coreLibrary, null);
+
assertMethod = jsHelperLibrary.find(buildSourceString('assert'));
interceptorsLibrary = createLibrary("interceptors", interceptorsSource);

Powered by Google App Engine
This is Rietveld 408576698