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

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

Issue 10829362: Rename DartMetadata in preparation for supporting real metadata (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/MethodElementImplementation.java
===================================================================
--- compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java (revision 10855)
+++ compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java (working copy)
@@ -10,7 +10,7 @@
import com.google.dart.compiler.ast.DartClass;
import com.google.dart.compiler.ast.DartFunctionExpression;
import com.google.dart.compiler.ast.DartIdentifier;
-import com.google.dart.compiler.ast.DartMetadata;
+import com.google.dart.compiler.ast.DartObsoleteMetadata;
import com.google.dart.compiler.ast.DartMethodDefinition;
import com.google.dart.compiler.ast.DartNativeBlock;
import com.google.dart.compiler.ast.DartNode;
@@ -25,7 +25,7 @@
import java.util.Set;
class MethodElementImplementation extends AbstractNodeElement implements MethodNodeElement {
- private final DartMetadata metadata;
+ private final DartObsoleteMetadata metadata;
private final Modifiers modifiers;
private final EnclosingElement holder;
private final ElementKind kind;
@@ -39,7 +39,7 @@
@VisibleForTesting
MethodElementImplementation(DartFunctionExpression node, String name, Modifiers modifiers) {
super(node, name);
- this.metadata = DartMetadata.EMPTY;
+ this.metadata = DartObsoleteMetadata.EMPTY;
this.modifiers = modifiers;
this.hasBody = true;
this.holder = findParentEnclosingElement(node);
@@ -61,7 +61,7 @@
DartBlock body = node.getFunction().getBody();
this.hasBody = body != null && !(body instanceof DartNativeBlock);
} else {
- this.metadata = DartMetadata.EMPTY;
+ this.metadata = DartObsoleteMetadata.EMPTY;
this.modifiers = Modifiers.NONE;
this.nameLocation = SourceInfo.UNKNOWN;
this.hasBody = false;
@@ -71,7 +71,7 @@
}
@Override
- public DartMetadata getMetadata() {
+ public DartObsoleteMetadata getMetadata() {
return metadata;
}

Powered by Google App Engine
This is Rietveld 408576698