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

Unified Diff: pkg/analyzer/test/src/dart/constant/evaluation_test.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
Index: pkg/analyzer/test/src/dart/constant/evaluation_test.dart
diff --git a/pkg/analyzer/test/src/dart/constant/evaluation_test.dart b/pkg/analyzer/test/src/dart/constant/evaluation_test.dart
index 40942d282323dbcca6d0c22491524536cc0af10f..665dbb90758388f3e7697ad775eb10cc72d3fb54 100644
--- a/pkg/analyzer/test/src/dart/constant/evaluation_test.dart
+++ b/pkg/analyzer/test/src/dart/constant/evaluation_test.dart
@@ -1581,10 +1581,10 @@ const b = 3;''');
}
DartObjectImpl _evaluate(Expression expression, ErrorReporter errorReporter) {
+ TestTypeProvider typeProvider = new TestTypeProvider();
return expression.accept(new ConstantVisitor(
- new ConstantEvaluationEngine(
- new TestTypeProvider(), new DeclaredVariables(),
- typeSystem: new TypeSystemImpl()),
+ new ConstantEvaluationEngine(typeProvider, new DeclaredVariables(),
+ typeSystem: new TypeSystemImpl(typeProvider)),
errorReporter));
}
« no previous file with comments | « pkg/analyzer/test/generated/type_system_test.dart ('k') | pkg/dev_compiler/lib/src/compiler/code_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698