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

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

Issue 10916268: New 'Clean Up' to convert old optional parameters to the new optional named where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
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 0692b4077d60cc4dd26cc5f8affbcda99d29d875..8dee845cd14b3d75a3d3e869c991e64f3f2e10ff 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
@@ -81,10 +81,9 @@ abstract class TypeTestCase extends TestCase {
Arrays.asList(new DartTypeNode(new DartIdentifier("E"))));
DartMethodDefinition iteratorMethod = DartMethodDefinition.create(
- new DartIdentifier("iterator"), new DartFunction(Collections.<DartParameter>emptyList(), 0,
- new DartBlock(Collections.<DartStatement>emptyList()), returnTypeNode),
- Modifiers.NONE,
- Collections.<DartInitializer>emptyList());
+ new DartIdentifier("iterator"), new DartFunction(Collections.<DartParameter> emptyList(),
+ -1, -1, 0, new DartBlock(Collections.<DartStatement> emptyList()), returnTypeNode),
+ Modifiers.NONE, Collections.<DartInitializer> emptyList());
MethodNodeElement iteratorMethodElement = Elements.methodFromMethodNode(iteratorMethod, element);
Type returnType = Types.interfaceType(iterElement, Arrays.<Type>asList(typeVar));
FunctionType functionType = ftype(function, returnType, Collections.<String,Type>emptyMap(),

Powered by Google App Engine
This is Rietveld 408576698