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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java

Issue 9700019: Use NodeElement to access Node in Resolver (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
index 01d358f22cb9c97418b890e411db4d13a8b8e6f3..0f1db9b8e0f0eb04045df894c169c335e747f5af 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
@@ -19,7 +19,7 @@ import com.google.dart.compiler.ast.DartTypeNode;
import com.google.dart.compiler.ast.Modifiers;
import com.google.dart.compiler.resolver.ClassElement;
import com.google.dart.compiler.resolver.Elements;
-import com.google.dart.compiler.resolver.MethodElement;
+import com.google.dart.compiler.resolver.MethodNodeElement;
import com.google.dart.compiler.resolver.TypeVariableElement;
import com.google.dart.compiler.testing.TestCompilerContext;
@@ -83,7 +83,7 @@ abstract class TypeTestCase extends TestCase {
new DartBlock(Collections.<DartStatement>emptyList()), returnTypeNode),
Modifiers.NONE,
Collections.<DartInitializer>emptyList());
- MethodElement iteratorMethodElement = Elements.methodFromMethodNode(iteratorMethod, element);
+ MethodNodeElement iteratorMethodElement = Elements.methodFromMethodNode(iteratorMethod, element);
Type returnType = Types.interfaceType(iterElement, Arrays.<Type>asList(typeVar));
FunctionType functionType = ftype(function, returnType, Collections.<String,Type>emptyMap(),
null);

Powered by Google App Engine
This is Rietveld 408576698