| 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 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 | 2032 |
| 2033 /** | 2033 /** |
| 2034 * Set the token for the left parenthesis to the given [token]. | 2034 * Set the token for the left parenthesis to the given [token]. |
| 2035 */ | 2035 */ |
| 2036 void set leftParenthesis(Token token); | 2036 void set leftParenthesis(Token token); |
| 2037 | 2037 |
| 2038 /** | 2038 /** |
| 2039 * Return the URI of the implementation library to be used if the condition is | 2039 * Return the URI of the implementation library to be used if the condition is |
| 2040 * true. | 2040 * true. |
| 2041 */ | 2041 */ |
| 2042 @deprecated |
| 2042 StringLiteral get libraryUri; | 2043 StringLiteral get libraryUri; |
| 2043 | 2044 |
| 2044 /** | 2045 /** |
| 2045 * Set the URI of the implementation library to be used if the condition is | 2046 * Set the URI of the implementation library to be used if the condition is |
| 2046 * true to the given [uri]. | 2047 * true to the given [uri]. |
| 2047 */ | 2048 */ |
| 2049 @deprecated |
| 2048 void set libraryUri(StringLiteral uri); | 2050 void set libraryUri(StringLiteral uri); |
| 2049 | 2051 |
| 2050 /** | 2052 /** |
| 2051 * Return the name of the declared variable whose value is being used in the | 2053 * Return the name of the declared variable whose value is being used in the |
| 2052 * condition. | 2054 * condition. |
| 2053 */ | 2055 */ |
| 2054 DottedName get name; | 2056 DottedName get name; |
| 2055 | 2057 |
| 2056 /** | 2058 /** |
| 2057 * Set the name of the declared variable whose value is being used in the | 2059 * Set the name of the declared variable whose value is being used in the |
| 2058 * condition to the given [name]. | 2060 * condition to the given [name]. |
| 2059 */ | 2061 */ |
| 2060 void set name(DottedName name); | 2062 void set name(DottedName name); |
| 2061 | 2063 |
| 2062 /** | 2064 /** |
| 2063 * Return the token for the right parenthesis. | 2065 * Return the token for the right parenthesis. |
| 2064 */ | 2066 */ |
| 2065 Token get rightParenthesis; | 2067 Token get rightParenthesis; |
| 2066 | 2068 |
| 2067 /** | 2069 /** |
| 2068 * Set the token for the right parenthesis to the given [token]. | 2070 * Set the token for the right parenthesis to the given [token]. |
| 2069 */ | 2071 */ |
| 2070 void set rightParenthesis(Token token); | 2072 void set rightParenthesis(Token token); |
| 2071 | 2073 |
| 2072 /** | 2074 /** |
| 2073 * Return the source to which the [libraryUri] was resolved. | 2075 * Return the URI of the implementation library to be used if the condition is |
| 2076 * true. |
| 2077 */ |
| 2078 StringLiteral get uri; |
| 2079 |
| 2080 /** |
| 2081 * Set the URI of the implementation library to be used if the condition is |
| 2082 * true to the given [uri]. |
| 2083 */ |
| 2084 void set uri(StringLiteral uri); |
| 2085 |
| 2086 /** |
| 2087 * Return the source to which the [uri] was resolved. |
| 2074 */ | 2088 */ |
| 2075 Source get uriSource; | 2089 Source get uriSource; |
| 2076 | 2090 |
| 2077 /** | 2091 /** |
| 2078 * Set the source to which the [libraryUri] was resolved to the given [source]
. | 2092 * Set the source to which the [uri] was resolved to the given [source]. |
| 2079 */ | 2093 */ |
| 2080 void set uriSource(Source source); | 2094 void set uriSource(Source source); |
| 2081 | 2095 |
| 2082 /** | 2096 /** |
| 2083 * Return the value to which the value of the declared variable will be | 2097 * Return the value to which the value of the declared variable will be |
| 2084 * compared, or `null` if the condition does not include an equality test. | 2098 * compared, or `null` if the condition does not include an equality test. |
| 2085 */ | 2099 */ |
| 2086 StringLiteral get value; | 2100 StringLiteral get value; |
| 2087 | 2101 |
| 2088 /** | 2102 /** |
| (...skipping 6181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8270 /** | 8284 /** |
| 8271 * Return the 'yield' keyword. | 8285 * Return the 'yield' keyword. |
| 8272 */ | 8286 */ |
| 8273 Token get yieldKeyword; | 8287 Token get yieldKeyword; |
| 8274 | 8288 |
| 8275 /** | 8289 /** |
| 8276 * Return the 'yield' keyword to the given [token]. | 8290 * Return the 'yield' keyword to the given [token]. |
| 8277 */ | 8291 */ |
| 8278 void set yieldKeyword(Token token); | 8292 void set yieldKeyword(Token token); |
| 8279 } | 8293 } |
| OLD | NEW |