| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 */ | 366 */ |
| 367 void set comma(Token token); | 367 void set comma(Token token); |
| 368 | 368 |
| 369 /** | 369 /** |
| 370 * Return the condition that is being asserted to be `true`. | 370 * Return the condition that is being asserted to be `true`. |
| 371 */ | 371 */ |
| 372 Expression get condition; | 372 Expression get condition; |
| 373 | 373 |
| 374 /** | 374 /** |
| 375 * Set the condition that is being asserted to be `true` to the given | 375 * Set the condition that is being asserted to be `true` to the given |
| 376 * [expression]. | 376 * [condition]. |
| 377 */ | 377 */ |
| 378 void set condition(Expression condition); | 378 void set condition(Expression condition); |
| 379 | 379 |
| 380 /** | 380 /** |
| 381 * Return the left parenthesis. | 381 * Return the left parenthesis. |
| 382 */ | 382 */ |
| 383 Token get leftParenthesis; | 383 Token get leftParenthesis; |
| 384 | 384 |
| 385 /** | 385 /** |
| 386 * Set the left parenthesis to the given [token]. | 386 * Set the left parenthesis to the given [token]. |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 * Return the cascade sections sharing the common target. | 1181 * Return the cascade sections sharing the common target. |
| 1182 */ | 1182 */ |
| 1183 NodeList<Expression> get cascadeSections; | 1183 NodeList<Expression> get cascadeSections; |
| 1184 | 1184 |
| 1185 /** | 1185 /** |
| 1186 * Return the target of the cascade sections. | 1186 * Return the target of the cascade sections. |
| 1187 */ | 1187 */ |
| 1188 Expression get target; | 1188 Expression get target; |
| 1189 | 1189 |
| 1190 /** | 1190 /** |
| 1191 * Set the target of the cascade sections to the given [expression]. | 1191 * Set the target of the cascade sections to the given [target]. |
| 1192 */ | 1192 */ |
| 1193 void set target(Expression target); | 1193 void set target(Expression target); |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 /** | 1196 /** |
| 1197 * A catch clause within a try statement. | 1197 * A catch clause within a try statement. |
| 1198 * | 1198 * |
| 1199 * onPart ::= | 1199 * onPart ::= |
| 1200 * catchPart [Block] | 1200 * catchPart [Block] |
| 1201 * | 'on' type catchPart? [Block] | 1201 * | 'on' type catchPart? [Block] |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 * Return the 'abstract' keyword, or `null` if the keyword was absent. | 1387 * Return the 'abstract' keyword, or `null` if the keyword was absent. |
| 1388 */ | 1388 */ |
| 1389 Token get abstractKeyword; | 1389 Token get abstractKeyword; |
| 1390 | 1390 |
| 1391 /** | 1391 /** |
| 1392 * Set the 'abstract' keyword to the given [token]. | 1392 * Set the 'abstract' keyword to the given [token]. |
| 1393 */ | 1393 */ |
| 1394 void set abstractKeyword(Token token); | 1394 void set abstractKeyword(Token token); |
| 1395 | 1395 |
| 1396 /** | 1396 /** |
| 1397 * Return the token representing the 'class' keyword to the given [token]. | 1397 * Return the token representing the 'class' keyword. |
| 1398 */ | 1398 */ |
| 1399 Token get classKeyword; | 1399 Token get classKeyword; |
| 1400 | 1400 |
| 1401 /** | 1401 /** |
| 1402 * Set the token representing the 'class' keyword. | 1402 * Set the token representing the 'class' keyword. |
| 1403 */ | 1403 */ |
| 1404 void set classKeyword(Token token); | 1404 void set classKeyword(Token token); |
| 1405 | 1405 |
| 1406 @override | 1406 @override |
| 1407 ClassElement get element; | 1407 ClassElement get element; |
| (...skipping 6832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8240 /** | 8240 /** |
| 8241 * Return the 'yield' keyword. | 8241 * Return the 'yield' keyword. |
| 8242 */ | 8242 */ |
| 8243 Token get yieldKeyword; | 8243 Token get yieldKeyword; |
| 8244 | 8244 |
| 8245 /** | 8245 /** |
| 8246 * Return the 'yield' keyword to the given [token]. | 8246 * Return the 'yield' keyword to the given [token]. |
| 8247 */ | 8247 */ |
| 8248 void set yieldKeyword(Token token); | 8248 void set yieldKeyword(Token token); |
| 8249 } | 8249 } |
| OLD | NEW |