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

Unified Diff: tests/compiler/dart2js/type_equals_test.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_combination_test.dart ('k') | tests/compiler/dart2js/type_order_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_equals_test.dart
diff --git a/tests/compiler/dart2js/type_equals_test.dart b/tests/compiler/dart2js/type_equals_test.dart
index 3b71f5fd8b26706c75290055a620663d8964be10..e7e40386b36fbbb544781de022b089032baf48eb 100644
--- a/tests/compiler/dart2js/type_equals_test.dart
+++ b/tests/compiler/dart2js/type_equals_test.dart
@@ -10,15 +10,17 @@ import "compiler_helper.dart";
bool test(compiler, String name1, String name2, {bool expect}) {
Expect.isTrue((expect != null), 'required parameter "expect" not given');
var clazz = findElement(compiler, "Class");
- clazz.ensureResolved(compiler);
+ clazz.ensureResolved(compiler.resolution);
var element1 = clazz.buildScope().lookup(name1);
var element2 = clazz.buildScope().lookup(name2);
Expect.isNotNull(element1);
Expect.isNotNull(element2);
Expect.equals(element1.kind, ElementKind.FUNCTION);
Expect.equals(element2.kind, ElementKind.FUNCTION);
- FunctionSignature signature1 = element1.computeSignature(compiler);
- FunctionSignature signature2 = element2.computeSignature(compiler);
+ FunctionSignature signature1 =
+ element1.computeSignature(compiler.resolution);
+ FunctionSignature signature2 =
+ element2.computeSignature(compiler.resolution);
// Function signatures are used to be to provide void types (only occuring as
// as return types) and (inlined) function types (only occuring as method
« no previous file with comments | « tests/compiler/dart2js/type_combination_test.dart ('k') | tests/compiler/dart2js/type_order_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698