Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectImpl.java |
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectImpl.java |
index f7dcdb4bfc14ad17a7e4c1ee44d07afceed12163..bafe98bc0ec84264c29b0232463de37013d2b45d 100644 |
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectImpl.java |
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectImpl.java |
@@ -865,6 +865,9 @@ public class ProjectImpl extends ContextManagerImpl implements Project { |
options.setAnalyzeAngular(DartCore.getPlugin().isAngularAnalysisEnabled()); |
options.setIncremental(DartCoreDebug.EXPERIMENTAL); |
+ AnalysisEngine.getInstance().setEnableUnionTypes(DartCoreDebug.ENABLE_UNION_TYPES); |
+ AnalysisEngine.getInstance().setStrictUnionTypes(DartCoreDebug.STRICT_UNION_TYPES); |
+ |
context.setSourceFactory(sourceFactory); |
context.setAnalysisOptions(options); |