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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/VariableElementImpl.java

Issue 49383003: Issue 14358. Check for assignment in any close. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/src/com/google/dart/engine/internal/element/VariableElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/VariableElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/VariableElementImpl.java
index f62b9d09b3bda632920e51a8bb1491eec96e1018..771454b0a6a5542eba04e2678732fa4da80793a5 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/VariableElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/VariableElementImpl.java
@@ -94,12 +94,22 @@ public abstract class VariableElementImpl extends ElementImpl implements Variabl
}
/**
+ * Return {@code true} if this variable is potentially mutated somewhere in closure. This
+ * information is only available for local variables (including parameters).
+ *
+ * @return {@code true} if this variable is potentially mutated somewhere in closure
+ */
+ public boolean isPotentiallyMutatedInClosure() {
+ return false;
+ }
+
+ /**
* Return {@code true} if this variable is potentially mutated somewhere in its scope. This
* information is only available for local variables (including parameters).
*
* @return {@code true} if this variable is potentially mutated somewhere in its scope
*/
- public boolean isPotentiallyMutated() {
+ public boolean isPotentiallyMutatedInScope() {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698