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

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

Issue 247053004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/FunctionElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/FunctionElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/FunctionElementImpl.java
index cb876629f6ee0aa28017d70bcdcba64157ea11ba..316ba455e4d3aef9fb569cd325fdf707bf486e06 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/FunctionElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/FunctionElementImpl.java
@@ -21,6 +21,7 @@ import com.google.dart.engine.element.ElementKind;
import com.google.dart.engine.element.ElementVisitor;
import com.google.dart.engine.element.FunctionElement;
import com.google.dart.engine.utilities.source.SourceRange;
+import com.google.dart.engine.utilities.translation.DartName;
/**
* Instances of the class {@code FunctionElementImpl} implement a {@code FunctionElement}.
@@ -49,6 +50,7 @@ public class FunctionElementImpl extends ExecutableElementImpl implements Functi
*
* @param name the name of this element
*/
+ @DartName("forNode")
public FunctionElementImpl(Identifier name) {
super(name);
}
@@ -60,10 +62,22 @@ public class FunctionElementImpl extends ExecutableElementImpl implements Functi
* @param nameOffset the offset of the name of this element in the file that contains the
* declaration of this element
*/
+ @DartName("forOffset")
public FunctionElementImpl(int nameOffset) {
super("", nameOffset);
}
+ /**
+ * Initialize a newly created function element to have the given name and offset.
+ *
+ * @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 FunctionElementImpl(String name, int nameOffset) {
+ super(name, nameOffset);
+ }
+
@Override
public <R> R accept(ElementVisitor<R> visitor) {
return visitor.visitFunctionElement(this);

Powered by Google App Engine
This is Rietveld 408576698