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

Unified Diff: pkg/compiler/lib/src/compile_time_constants.dart

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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: pkg/compiler/lib/src/compile_time_constants.dart
diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart
index d633e6b1394eab126a3a3b88fffc02f70b9ce6bc..1eabdf3ef2c6fc7fe9a88adaa8749023c90812ee 100644
--- a/pkg/compiler/lib/src/compile_time_constants.dart
+++ b/pkg/compiler/lib/src/compile_time_constants.dart
@@ -243,7 +243,7 @@ abstract class ConstantCompilerBase implements ConstantCompiler {
} else {
expression = compileNodeWithDefinitions(initializer, definitions,
isConst: isConst);
- if (compiler.enableTypeAssertions &&
+ if (compiler.options.enableTypeAssertions &&
checkType &&
expression != null &&
element.isField) {
@@ -1079,7 +1079,7 @@ class ConstructorEvaluator extends CompileTimeConstantEvaluator {
}
void potentiallyCheckType(TypedElement element, AstConstant constant) {
- if (compiler.enableTypeAssertions) {
+ if (compiler.options.enableTypeAssertions) {
DartType elementType = element.type.substByContext(constructedType);
DartType constantType = constant.value.getType(coreTypes);
if (!constantSystem.isSubtype(

Powered by Google App Engine
This is Rietveld 408576698