OLD | NEW |
---|---|
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 AST model. The AST (Abstract Syntax Tree) model describes the | 6 * Defines the AST model. The AST (Abstract Syntax Tree) model describes the |
7 * syntactic (as opposed to semantic) structure of Dart code. The semantic | 7 * syntactic (as opposed to semantic) structure of Dart code. The semantic |
8 * structure of the code is modeled by the | 8 * structure of the code is modeled by the |
9 * [element model](../element/element.dart). | 9 * [element model](../element/element.dart). |
10 * | 10 * |
(...skipping 5955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5966 | 5966 |
5967 /** | 5967 /** |
5968 * Return the source that was selected based on the declared variables. This | 5968 * Return the source that was selected based on the declared variables. This |
5969 * will be the source from the first configuration whose condition is true, or | 5969 * will be the source from the first configuration whose condition is true, or |
5970 * the [uriSource] if either there are no configurations or if there are no | 5970 * the [uriSource] if either there are no configurations or if there are no |
5971 * configurations whose condition is true. | 5971 * configurations whose condition is true. |
5972 */ | 5972 */ |
5973 Source get selectedSource; | 5973 Source get selectedSource; |
5974 | 5974 |
5975 /** | 5975 /** |
5976 * Return the URI that was selected based on the declared variables. This | |
5977 * will be the URI from the first configuration whose condition is true, or | |
5978 * the [uri] if either there are no configurations or if there are no | |
5979 * configurations whose condition is true. | |
5980 */ | |
5981 String get selectedUri; | |
Brian Wilkerson
2016/09/17 00:27:42
Not sure I like the name, but given that 'selected
scheglov
2016/09/17 02:01:57
Ah... Right.
It should be selectedUriContent, as i
Brian Wilkerson
2016/09/17 02:27:13
We didn't make it selectedUriSource, so I don't kn
| |
5982 | |
5983 /** | |
5976 * Return the semicolon terminating the directive. | 5984 * Return the semicolon terminating the directive. |
5977 */ | 5985 */ |
5978 Token get semicolon; | 5986 Token get semicolon; |
5979 | 5987 |
5980 /** | 5988 /** |
5981 * Set the semicolon terminating the directive to the given [token]. | 5989 * Set the semicolon terminating the directive to the given [token]. |
5982 */ | 5990 */ |
5983 void set semicolon(Token token); | 5991 void set semicolon(Token token); |
5984 } | 5992 } |
5985 | 5993 |
(...skipping 2324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8310 /** | 8318 /** |
8311 * Return the 'yield' keyword. | 8319 * Return the 'yield' keyword. |
8312 */ | 8320 */ |
8313 Token get yieldKeyword; | 8321 Token get yieldKeyword; |
8314 | 8322 |
8315 /** | 8323 /** |
8316 * Return the 'yield' keyword to the given [token]. | 8324 * Return the 'yield' keyword to the given [token]. |
8317 */ | 8325 */ |
8318 void set yieldKeyword(Token token); | 8326 void set yieldKeyword(Token token); |
8319 } | 8327 } |
OLD | NEW |