| Index: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
|
| index 0fcfa6229b2f68cec2220317eefbe2cec2cc5c72..6ec7fb30c1c0b2590f827c50c5da71ba8ff7f11c 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java
|
| @@ -502,7 +502,7 @@ public class QuickAssistProcessorImpl implements QuickAssistProcessor {
|
| return;
|
| }
|
| // should be "isEmpty"
|
| - Element propertyElement = isEmptyIdentifier.getElement();
|
| + Element propertyElement = isEmptyIdentifier.getBestElement();
|
| if (propertyElement == null || !"isEmpty".equals(propertyElement.getName())) {
|
| return;
|
| }
|
| @@ -688,7 +688,7 @@ public class QuickAssistProcessorImpl implements QuickAssistProcessor {
|
| return;
|
| }
|
| // prepare "declaration" statement
|
| - Element element = ((SimpleIdentifier) node).getElement();
|
| + Element element = ((SimpleIdentifier) node).getStaticElement();
|
| if (element == null) {
|
| return;
|
| }
|
|
|