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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java

Issue 9977007: Remember visibility range for DartVariable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java
index afe53a1dc1d23a924f4c4cb3107f8c252cc22a2a..3d7d597770b0cb277363964068d330485c8fa132 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartVariableImpl.java
@@ -76,6 +76,12 @@ public class DartVariableImpl extends SourceReferenceImpl implements DartVariabl
}
@Override
+ public SourceRange getVisibleRange() throws DartModelException {
+ DartVariableInfo info = (DartVariableInfo) getElementInfo();
+ return info.getVisibleRange();
+ }
+
+ @Override
public boolean isGlobal() {
return getParent() instanceof CompilationUnit;
}

Powered by Google App Engine
This is Rietveld 408576698