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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.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
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index fbb788045dd280d44262f851e92dc5eb3d49fca8..85a81bc4627716b7481657c35f67b0d075e20801 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -466,7 +466,8 @@ class LocalsHandler<T> {
void update(LocalElement local, T type, Node node) {
assert(type != null);
- if (compiler.trustTypeAnnotations || compiler.enableTypeAssertions) {
+ if (compiler.options.trustTypeAnnotations ||
+ compiler.options.enableTypeAssertions) {
type = types.narrowType(type, local.type);
}
updateLocal() {
@@ -779,7 +780,7 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>>
T visitAssert(Assert node) {
// Avoid pollution from assert statement unless enabled.
- if (compiler.enableUserAssertions) {
+ if (compiler.options.enableUserAssertions) {
super.visitAssert(node);
}
return null;
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698