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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Defines the element model. The element model describes the semantic (as 6 * Defines the element model. The element model describes the semantic (as
7 * opposed to syntactic) structure of Dart code. The syntactic structure of the 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the
8 * code is modeled by the [AST structure](../ast/ast.dart). 8 * code is modeled by the [AST structure](../ast/ast.dart).
9 * 9 *
10 * The element model consists of two closely related kinds of objects: elements 10 * The element model consists of two closely related kinds of objects: elements
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 * Variables that are declared with the 'const' modifier will return `false` 1904 * Variables that are declared with the 'const' modifier will return `false`
1905 * even though they are implicitly final. 1905 * even though they are implicitly final.
1906 */ 1906 */
1907 bool get isFinal; 1907 bool get isFinal;
1908 1908
1909 /** 1909 /**
1910 * Return `true` if this variable is potentially mutated somewhere in a 1910 * Return `true` if this variable is potentially mutated somewhere in a
1911 * closure. This information is only available for local variables (including 1911 * closure. This information is only available for local variables (including
1912 * parameters) and only after the compilation unit containing the variable has 1912 * parameters) and only after the compilation unit containing the variable has
1913 * been resolved. 1913 * been resolved.
1914 *
1915 * This getter is deprecated--it now returns `true` for all local variables
1916 * and parameters. Please use [FunctionBody.isPotentiallyMutatedInClosure]
1917 * instead.
1914 */ 1918 */
1919 @deprecated
1915 bool get isPotentiallyMutatedInClosure; 1920 bool get isPotentiallyMutatedInClosure;
1916 1921
1917 /** 1922 /**
1918 * Return `true` if this variable is potentially mutated somewhere in its 1923 * Return `true` if this variable is potentially mutated somewhere in its
1919 * scope. This information is only available for local variables (including 1924 * scope. This information is only available for local variables (including
1920 * parameters) and only after the compilation unit containing the variable has 1925 * parameters) and only after the compilation unit containing the variable has
1921 * been resolved. 1926 * been resolved.
1927 *
1928 * This getter is deprecated--it now returns `true` for all local variables
1929 * and parameters. Please use [FunctionBody.isPotentiallyMutatedInClosure]
1930 * instead.
1922 */ 1931 */
1932 @deprecated
1923 bool get isPotentiallyMutatedInScope; 1933 bool get isPotentiallyMutatedInScope;
1924 1934
1925 /** 1935 /**
1926 * Return `true` if this element is a static variable, as per section 8 of the 1936 * Return `true` if this element is a static variable, as per section 8 of the
1927 * Dart Language Specification: 1937 * Dart Language Specification:
1928 * 1938 *
1929 * > A static variable is a variable that is not associated with a particular 1939 * > A static variable is a variable that is not associated with a particular
1930 * > instance, but rather with an entire library or class. Static variables 1940 * > instance, but rather with an entire library or class. Static variables
1931 * > include library variables and class variables. Class variables are 1941 * > include library variables and class variables. Class variables are
1932 * > variables whose declaration is immediately nested inside a class 1942 * > variables whose declaration is immediately nested inside a class
1933 * > declaration and includes the modifier static. A library variable is 1943 * > declaration and includes the modifier static. A library variable is
1934 * > implicitly static. 1944 * > implicitly static.
1935 */ 1945 */
1936 bool get isStatic; 1946 bool get isStatic;
1937 1947
1938 /** 1948 /**
1939 * Return the declared type of this variable, or `null` if the variable did 1949 * Return the declared type of this variable, or `null` if the variable did
1940 * not have a declared type (such as if it was declared using the keyword 1950 * not have a declared type (such as if it was declared using the keyword
1941 * 'var'). 1951 * 'var').
1942 */ 1952 */
1943 DartType get type; 1953 DartType get type;
1944 } 1954 }
OLDNEW
« 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