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

Unified Diff: pkg/dev_compiler/lib/src/compiler/code_generator.dart

Issue 2590883004: Put a TypeProvider on the TypeSystem implementations. (Closed)
Patch Set: Rebase Created 3 years, 11 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/analyzer/test/src/dart/constant/evaluation_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/code_generator.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
index 46ddce3a113ef5075e19c3fb9df4dd2221d2b645..d4069072afdc15a04bf9e717848d7a34c0434d1a 100644
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
@@ -60,7 +60,7 @@ class CodeGenerator extends GeneralizingAstVisitor
final SummaryDataStore summaryData;
final CompilerOptions options;
- final rules = new StrongTypeSystemImpl();
+ final StrongTypeSystemImpl rules;
/// The set of libraries we are currently compiling, and the temporaries used
/// to refer to them.
@@ -159,6 +159,7 @@ class CodeGenerator extends GeneralizingAstVisitor
CodeGenerator(
AnalysisContext c, this.summaryData, this.options, this._extensionTypes)
: context = c,
+ rules = new StrongTypeSystemImpl(c.typeProvider),
types = c.typeProvider,
_asyncStreamIterator =
_getLibrary(c, 'dart:async').getType('StreamIterator').type,
« no previous file with comments | « pkg/analyzer/test/src/dart/constant/evaluation_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698