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

Unified Diff: tests/compiler/dart2js/type_test_helper.dart

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add TODOs. Created 5 years, 3 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 | « tests/compiler/dart2js/type_substitution_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index c67d0bafb7d924d55fbbee73c39dece394501467..32ed3ff234aba4b083d78ba7cf18d23d92340d67 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -92,15 +92,15 @@ class TypeEnvironment {
var element = compiler.mainApp.find(name);
Expect.isNotNull(element);
if (element.isClass) {
- element.ensureResolved(compiler);
+ element.ensureResolved(compiler.resolution);
} else if (element.isTypedef) {
- element.computeType(compiler);
+ element.computeType(compiler.resolution);
}
return element;
}
DartType getElementType(String name) {
- return getElement(name).computeType(compiler);
+ return getElement(name).computeType(compiler.resolution);
}
DartType operator[] (String name) {
@@ -111,7 +111,7 @@ class TypeEnvironment {
DartType getMemberType(ClassElement element, String name) {
Element member = element.localLookup(name);
- return member.computeType(compiler);
+ return member.computeType(compiler.resolution);
}
bool isSubtype(DartType T, DartType S) {
« no previous file with comments | « tests/compiler/dart2js/type_substitution_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698