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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickFixProcessorImpl.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/QuickFixProcessorImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickFixProcessorImpl.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickFixProcessorImpl.java
index 5c7fb3b152c40ea85580e4c0dcaae78c7d9a4301..b9ce65dd9424d023bd2221a35e1e73c4aac40139 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickFixProcessorImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/correction/QuickFixProcessorImpl.java
@@ -1090,7 +1090,7 @@ public class QuickFixProcessorImpl implements QuickFixProcessor {
targetSource = targetElement.getSource();
// may be static
if (target instanceof Identifier) {
- staticModifier = ((Identifier) target).getElement().getKind() == ElementKind.CLASS;
+ staticModifier = ((Identifier) target).getBestElement().getKind() == ElementKind.CLASS;
}
// prepare insert offset
ClassDeclaration targetClass = CorrectionUtils.getResolvedNode(targetElement);

Powered by Google App Engine
This is Rietveld 408576698