Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImpl.java

Issue 22854024: Rename Identifier.getElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: clean-up and fix Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698