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

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

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from mmendez Created 9 years 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/Elements.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Elements.java b/compiler/java/com/google/dart/compiler/resolver/Elements.java
index f9a37350ce250fca438fc8153af8486ae255b760..17645d8c6b5b4ee67d5eb15d896e5241b34ab86b 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Elements.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Elements.java
@@ -16,7 +16,7 @@ import com.google.dart.compiler.ast.DartLabel;
import com.google.dart.compiler.ast.DartMethodDefinition;
import com.google.dart.compiler.ast.DartNode;
import com.google.dart.compiler.ast.DartParameter;
-import com.google.dart.compiler.ast.DartParameterizedNode;
+import com.google.dart.compiler.ast.DartParameterizedTypeNode;
import com.google.dart.compiler.ast.DartPropertyAccess;
import com.google.dart.compiler.ast.DartSuperExpression;
import com.google.dart.compiler.ast.DartTypeParameter;
@@ -156,8 +156,7 @@ public class Elements {
public static void setType(Element element, Type type) {
((AbstractElement) element).setType(type);
}
-
- static FieldElementImplementation fieldFromNode(DartField node,
+static FieldElementImplementation fieldFromNode(DartField node,
EnclosingElement holder,
Modifiers modifiers) {
return FieldElementImplementation.fromNode(node, holder, modifiers);
@@ -275,8 +274,8 @@ public class Elements {
private static String getRawName(DartNode name) {
if (name instanceof DartIdentifier) {
return ((DartIdentifier) name).getTargetName();
- } else if (name instanceof DartParameterizedNode) {
- return getRawName(((DartParameterizedNode) name).getExpression());
+ } else if (name instanceof DartParameterizedTypeNode) {
+ return getRawName(((DartParameterizedTypeNode) name).getExpression());
} else {
DartPropertyAccess propertyAccess = (DartPropertyAccess) name;
return getRawName(propertyAccess.getQualifier()) + "." + getRawName(propertyAccess.getName());

Powered by Google App Engine
This is Rietveld 408576698