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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartStringLiteral.java

Issue 11415065: Issue 6770. Support for @deprecated on library directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/ast/DartStringLiteral.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartStringLiteral.java b/compiler/java/com/google/dart/compiler/ast/DartStringLiteral.java
index 91c69d95ef2453157f6ca8efc0bc9997f8c15d87..e2a83bfc6096139fc23767d9088b510aa584d26b 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartStringLiteral.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartStringLiteral.java
@@ -5,6 +5,7 @@
package com.google.dart.compiler.ast;
import com.google.common.collect.ImmutableList;
+import com.google.dart.compiler.resolver.Element;
import java.util.List;
@@ -12,6 +13,8 @@ import java.util.List;
* Represents a Dart string literal value.
*/
public class DartStringLiteral extends DartLiteral {
+
+ private Element element;
public static DartStringLiteral get(String x) {
return new DartStringLiteral(x, null);
@@ -43,6 +46,16 @@ public class DartStringLiteral extends DartLiteral {
}
return parts;
}
+
+ @Override
+ public void setElement(Element element) {
+ this.element = element;
+ }
+
+ @Override
+ public Element getElement() {
+ return element;
+ }
@Override
public void visitChildren(ASTVisitor<?> visitor) {

Powered by Google App Engine
This is Rietveld 408576698