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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartVariableDeclaration.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/model/DartVariableDeclaration.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartVariableDeclaration.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartVariableDeclaration.java
index 114acf4eeef7e1fc5a9f6d9ec6d7bb06d5abcd7d..e09fda9d3f3a60b3cee886685171bfe45620c12e 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartVariableDeclaration.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/DartVariableDeclaration.java
@@ -30,6 +30,11 @@ public interface DartVariableDeclaration extends CompilationUnitElement, SourceR
public String getTypeName() throws DartModelException;
/**
+ * @return the {@link SourceRange} in which this variable is visible.
+ */
+ public SourceRange getVisibleRange() throws DartModelException;
+
+ /**
* Return <code>true</code> if this variable is global (defined at the top-level of a compilation
* unit).
*

Powered by Google App Engine
This is Rietveld 408576698