| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ElementLocator.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ElementLocator.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ElementLocator.java
|
| index 4e626333e58d0c9dfe2adb6161ae0efddd7c7c5f..4e1c06f08d6a2740e3efffbc66b74ce2334bca55 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ElementLocator.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ElementLocator.java
|
| @@ -20,7 +20,6 @@ import com.google.dart.engine.ast.BinaryExpression;
|
| import com.google.dart.engine.ast.ClassDeclaration;
|
| import com.google.dart.engine.ast.CompilationUnit;
|
| import com.google.dart.engine.ast.ConstructorDeclaration;
|
| -import com.google.dart.engine.ast.ConstructorName;
|
| import com.google.dart.engine.ast.FunctionDeclaration;
|
| import com.google.dart.engine.ast.Identifier;
|
| import com.google.dart.engine.ast.ImportDirective;
|
| @@ -36,7 +35,6 @@ import com.google.dart.engine.ast.PrefixExpression;
|
| import com.google.dart.engine.ast.PrefixedIdentifier;
|
| import com.google.dart.engine.ast.SimpleIdentifier;
|
| import com.google.dart.engine.ast.StringLiteral;
|
| -import com.google.dart.engine.ast.TypeName;
|
| import com.google.dart.engine.ast.UriBasedDirective;
|
| import com.google.dart.engine.ast.VariableDeclaration;
|
| import com.google.dart.engine.element.ClassElement;
|
| @@ -101,25 +99,6 @@ public class ElementLocator {
|
| return annotation.getElement();
|
| }
|
| }
|
| - // Type name in InstanceCreationExpression
|
| - {
|
| - AstNode typeNameCandidate = parent;
|
| - // new prefix.node[.constructorName]()
|
| - if (typeNameCandidate instanceof PrefixedIdentifier) {
|
| - PrefixedIdentifier prefixedIdentifier = (PrefixedIdentifier) typeNameCandidate;
|
| - if (prefixedIdentifier.getIdentifier() == node) {
|
| - typeNameCandidate = prefixedIdentifier.getParent();
|
| - }
|
| - }
|
| - // new typeName[.constructorName]()
|
| - if (typeNameCandidate instanceof TypeName) {
|
| - TypeName typeName = (TypeName) typeNameCandidate;
|
| - if (typeName.getParent() instanceof ConstructorName) {
|
| - ConstructorName constructorName = (ConstructorName) typeName.getParent();
|
| - return constructorName.getStaticElement();
|
| - }
|
| - }
|
| - }
|
| // Extra work to map Constructor Declarations to their associated Constructor Elements
|
| if (parent instanceof ConstructorDeclaration) {
|
| ConstructorDeclaration decl = (ConstructorDeclaration) parent;
|
|
|