| Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractMethodRefactoring.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractMethodRefactoring.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractMethodRefactoring.java
|
| index 5a44bafc3aed5a8ad5199c7fa1bcc4ec366c0e27..f7b75c0b4d41cbfd7bb8d1cd0dfa688a1572c3df 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractMethodRefactoring.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractMethodRefactoring.java
|
| @@ -30,7 +30,6 @@ import com.google.dart.compiler.ast.DartNode;
|
| import com.google.dart.compiler.ast.DartStatement;
|
| import com.google.dart.compiler.ast.DartUnit;
|
| import com.google.dart.compiler.resolver.ClassElement;
|
| -import com.google.dart.compiler.resolver.Elements;
|
| import com.google.dart.compiler.resolver.VariableElement;
|
| import com.google.dart.compiler.util.apache.StringUtils;
|
| import com.google.dart.engine.scanner.Token;
|
| @@ -133,7 +132,7 @@ public class ExtractMethodRefactoring extends Refactoring {
|
| * declaration of the variable.
|
| */
|
| private static boolean isLeftHandOfAssignment(DartIdentifier node) {
|
| - if (Elements.inSetterContext(node)) {
|
| + if (ASTNodes.inSetterContext(node)) {
|
| return true;
|
| }
|
| return PropertyDescriptorHelper.getLocationInParent(node) == PropertyDescriptorHelper.DART_VARIABLE_NAME;
|
|
|