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

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

Issue 34523011: Issue 13807. Support for type promotion rules. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates after review comments 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 c948b2ef48a7faf86ccdd5ea3c90d58a00680c20..f62b9d09b3bda632920e51a8bb1491eec96e1018 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,6 +94,16 @@ public abstract class VariableElementImpl extends ElementImpl implements Variabl
}
/**
+ * 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() {
+ return false;
+ }
+
+ /**
* Set whether this variable is const to correspond to the given value.
*
* @param isConst {@code true} if the variable is const

Powered by Google App Engine
This is Rietveld 408576698