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

Unified Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 1711433002: Deprecate old "isPotentiallyMutated..." API. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/element/element.dart
diff --git a/pkg/analyzer/lib/dart/element/element.dart b/pkg/analyzer/lib/dart/element/element.dart
index 370f53ef1244ddc75964f2df1e86406f2b128f78..d210229d602c3ce908b4f0432301af4c07fba5e5 100644
--- a/pkg/analyzer/lib/dart/element/element.dart
+++ b/pkg/analyzer/lib/dart/element/element.dart
@@ -1911,7 +1911,12 @@ abstract class VariableElement implements Element, ConstantEvaluationTarget {
* closure. This information is only available for local variables (including
* parameters) and only after the compilation unit containing the variable has
* been resolved.
+ *
+ * This getter is deprecated--it now returns `true` for all local variables
+ * and parameters. Please use [FunctionBody.isPotentiallyMutatedInClosure]
+ * instead.
*/
+ @deprecated
bool get isPotentiallyMutatedInClosure;
/**
@@ -1919,7 +1924,12 @@ abstract class VariableElement implements Element, ConstantEvaluationTarget {
* scope. This information is only available for local variables (including
* parameters) and only after the compilation unit containing the variable has
* been resolved.
+ *
+ * This getter is deprecated--it now returns `true` for all local variables
+ * and parameters. Please use [FunctionBody.isPotentiallyMutatedInClosure]
+ * instead.
*/
+ @deprecated
bool get isPotentiallyMutatedInScope;
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698