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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java

Issue 9692002: Step back and remove more getNode() invocations (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/java/com/google/dart/compiler/resolver/SupertypeResolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
index bc2863cd9ee9f19603174ffb5623a116edbf9a85..b4c2c6ca864d45909b97bc5d33d77ea732e45753 100644
--- a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
@@ -126,19 +126,15 @@ public class SupertypeResolver {
TypeVariableElement variable = (TypeVariableElement) typeParameter.getElement();
DartTypeParameter typeParameterNode = (DartTypeParameter) variable.getNode();
DartTypeNode boundNode = typeParameterNode.getBound();
- Type bound;
if (boundNode != null) {
- bound =
+ Type bound =
resolutionContext.resolveType(
boundNode,
false,
false,
ResolverErrorCode.NO_SUCH_TYPE);
boundNode.setType(bound);
- } else {
- bound = typeProvider.getObjectType();
}
- variable.setBound(bound);
}
}

Powered by Google App Engine
This is Rietveld 408576698