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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java

Issue 9148026: Recompile unit with potential conflict/dependency on some top-level symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and merge Created 8 years, 11 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/backend/common/TypeHeuristicImplementationTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java b/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java
index 89f28cc5c6d7b07f16e66b62e08ee99466bc5307..c2da30d46042924f530f97b126d7720b25fe8e4f 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java
+++ b/compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java
@@ -851,9 +851,13 @@ public class TypeHeuristicImplementationTest extends CompilerTestCase {
}
private DartClass getClass(DartUnit unit, String name) {
- DartNode node = unit.getLibrary().getTopLevelNode(name);
- if (node instanceof DartClass) {
- return (DartClass) node;
+ for (DartNode topLevelNode : unit.getTopLevelNodes()) {
+ if (topLevelNode instanceof DartClass) {
+ DartClass dartClass = (DartClass) topLevelNode;
+ if (dartClass.getName().getTargetName().equals(name)) {
+ return dartClass;
+ }
+ }
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698