| 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);
|
|
|