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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java

Issue 9600049: Use NodeList where possible. (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/resolver/ResolverTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
index 6cc93729c9572818d328843d41992cc224d08107..a001ba19b4d08a8178448cf0efaffc593fcc5376 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
@@ -330,7 +330,7 @@ abstract class ResolverTestCase extends TestCase {
protected static DartUnit makeUnit(DartNode... topLevelElements) {
DartUnit unit = new DartUnit(null, false);
for (DartNode topLevelElement : topLevelElements) {
- unit.addTopLevelNode(topLevelElement);
+ unit.getTopLevelNodes().add(topLevelElement);
}
return unit;
}

Powered by Google App Engine
This is Rietveld 408576698