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

Side by Side Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 2966313002: Remove ExecutableElement.localVariables altogether. (Closed)
Patch Set: Created 3 years, 5 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/builder.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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 * Return `true` if this executable element has a body marked as being 1153 * Return `true` if this executable element has a body marked as being
1154 * synchronous. 1154 * synchronous.
1155 */ 1155 */
1156 bool get isSynchronous; 1156 bool get isSynchronous;
1157 1157
1158 /** 1158 /**
1159 * Return a list containing all of the labels defined within this executable 1159 * Return a list containing all of the labels defined within this executable
1160 * element. 1160 * element.
1161 */ 1161 */
1162 List<LabelElement> get labels; 1162 List<LabelElement> get labels;
1163
1164 /**
1165 * Return a list containing all of the local variables defined within this
1166 * executable element.
1167 */
1168 List<LocalVariableElement> get localVariables;
1169 } 1163 }
1170 1164
1171 /** 1165 /**
1172 * An export directive within a library. 1166 * An export directive within a library.
1173 * 1167 *
1174 * Clients may not extend, implement or mix-in this class. 1168 * Clients may not extend, implement or mix-in this class.
1175 */ 1169 */
1176 abstract class ExportElement implements Element, UriReferencedElement { 1170 abstract class ExportElement implements Element, UriReferencedElement {
1177 /** 1171 /**
1178 * An empty list of export elements. 1172 * An empty list of export elements.
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 DartType get type; 2073 DartType get type;
2080 2074
2081 /** 2075 /**
2082 * Return a representation of the value of this variable, forcing the value 2076 * Return a representation of the value of this variable, forcing the value
2083 * to be computed if it had not previously been computed, or `null` if either 2077 * to be computed if it had not previously been computed, or `null` if either
2084 * this variable was not declared with the 'const' modifier or if the value of 2078 * this variable was not declared with the 'const' modifier or if the value of
2085 * this variable could not be computed because of errors. 2079 * this variable could not be computed because of errors.
2086 */ 2080 */
2087 DartObject computeConstantValue(); 2081 DartObject computeConstantValue();
2088 } 2082 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698