| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
|
| index 41b13d5313dadd338eeb88f80a7dfe037b0da985..78223ffe242d3bcdbe7344723deab0d94351ecda 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
|
| @@ -89,7 +89,7 @@ public class DartAstUtilities {
|
| * @return <code>true</code> if the given method is a constructor
|
| */
|
| public static boolean isConstructor(DartMethodDefinition method) {
|
| - MethodElement methodElement = method.getSymbol();
|
| + MethodElement methodElement = method.getElement();
|
| if (methodElement != null) {
|
| return methodElement.isConstructor();
|
| }
|
| @@ -109,12 +109,12 @@ public class DartAstUtilities {
|
| }
|
| DartExpression name = method.getName();
|
| if (name instanceof DartIdentifier) {
|
| - return ((DartIdentifier) name).getTargetName().equals(className);
|
| + return ((DartIdentifier) name).getName().equals(className);
|
| } else if (name instanceof DartPropertyAccess) {
|
| DartPropertyAccess property = (DartPropertyAccess) name;
|
| DartNode qualifier = property.getQualifier();
|
| if (qualifier instanceof DartIdentifier) {
|
| - return ((DartIdentifier) qualifier).getTargetName().equals(className);
|
| + return ((DartIdentifier) qualifier).getName().equals(className);
|
| }
|
| }
|
| return false;
|
|
|