Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index fa655c520b7376ada4a16be08621aef639a50638..3b98b92e0506283af7288b3a5aa5386f6eafb22d 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -454,6 +454,7 @@ abstract class Compiler { |
this.deferredMapUri: null, |
this.dumpInfo: false, |
bool useStartupEmitter: false, |
+ bool enableConditionalDirectives: false, |
this.useContentSecurityPolicy: false, |
bool hasIncrementalSupport: false, |
this.enableExperimentalMirrors: false, |
@@ -515,9 +516,12 @@ abstract class Compiler { |
libraryLoader = new LibraryLoaderTask(this), |
serialization = new SerializationTask(this), |
scanner = new ScannerTask(this), |
- dietParser = new DietParserTask(this), |
- parser = new ParserTask(this), |
- patchParser = new PatchParserTask(this), |
+ dietParser = new DietParserTask( |
+ this, enableConditionalDirectives: enableConditionalDirectives), |
+ parser = new ParserTask( |
+ this, enableConditionalDirectives: enableConditionalDirectives), |
+ patchParser = new PatchParserTask( |
+ this, enableConditionalDirectives: enableConditionalDirectives), |
resolver = new ResolverTask(this, backend.constantCompilerTask), |
closureToClassMapper = new closureMapping.ClosureTask(this), |
checker = new TypeCheckerTask(this), |