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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/TopLevelVariableElementImpl.java

Issue 351283003: Move Tokenfactory, AstFactory and ElementFactory from tests to the testing/ Folder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/TopLevelVariableElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/TopLevelVariableElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/TopLevelVariableElementImpl.java
index a8af22dbdc7287672c3ad990f2122160982f147b..f8fa5b65664e53b5f7842674ac5844cce669d857 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/TopLevelVariableElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/TopLevelVariableElementImpl.java
@@ -17,6 +17,7 @@ import com.google.dart.engine.ast.Identifier;
import com.google.dart.engine.element.ElementKind;
import com.google.dart.engine.element.ElementVisitor;
import com.google.dart.engine.element.TopLevelVariableElement;
+import com.google.dart.engine.utilities.translation.DartName;
/**
* Instances of the class {@code TopLevelVariableElementImpl} implement a
@@ -36,6 +37,7 @@ public class TopLevelVariableElementImpl extends PropertyInducingElementImpl imp
*
* @param name the name of this element
*/
+ @DartName("forNode")
public TopLevelVariableElementImpl(Identifier name) {
super(name);
}
@@ -44,9 +46,11 @@ public class TopLevelVariableElementImpl extends PropertyInducingElementImpl imp
* Initialize a newly created synthetic top-level variable element to have the given name.
*
* @param name the name of this element
+ * @param nameOffset the offset of the name of this element in the file that contains the
+ * declaration of this element
*/
- public TopLevelVariableElementImpl(String name) {
- super(name);
+ public TopLevelVariableElementImpl(String name, int nameOffset) {
+ super(name, nameOffset);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698