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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.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/PropertyInducingElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.java
index 2afc8cc242178885cc11435ab4745d249c368d2b..b0ee9bd4e282e65f8796b4772ded702035e31816 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/PropertyInducingElementImpl.java
@@ -17,6 +17,7 @@ import com.google.dart.engine.ast.Identifier;
import com.google.dart.engine.element.PropertyAccessorElement;
import com.google.dart.engine.element.PropertyInducingElement;
import com.google.dart.engine.type.Type;
+import com.google.dart.engine.utilities.translation.DartName;
/**
* Instances of the class {@code PropertyInducingElementImpl} implement a
@@ -53,6 +54,7 @@ public abstract class PropertyInducingElementImpl extends VariableElementImpl im
*
* @param name the name of this element
*/
+ @DartName("forNode")
public PropertyInducingElementImpl(Identifier name) {
super(name);
}
@@ -61,10 +63,11 @@ public abstract class PropertyInducingElementImpl extends VariableElementImpl im
* Initialize a newly created synthetic 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 PropertyInducingElementImpl(String name) {
- super(name, -1);
- setSynthetic(true);
+ public PropertyInducingElementImpl(String name, int nameOffset) {
+ super(name, nameOffset);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698