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 5293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5304 * | 5304 * |
5305 * normalFormalParameter ::= | 5305 * normalFormalParameter ::= |
5306 * [FunctionTypedFormalParameter] | 5306 * [FunctionTypedFormalParameter] |
5307 * | [FieldFormalParameter] | 5307 * | [FieldFormalParameter] |
5308 * | [SimpleFormalParameter] | 5308 * | [SimpleFormalParameter] |
5309 * | 5309 * |
5310 * Clients may not extend, implement or mix-in this class. | 5310 * Clients may not extend, implement or mix-in this class. |
5311 */ | 5311 */ |
5312 abstract class NormalFormalParameter extends FormalParameter { | 5312 abstract class NormalFormalParameter extends FormalParameter { |
5313 /** | 5313 /** |
| 5314 * Set the token for the 'covariant' keyword to the given [token]. |
| 5315 */ |
| 5316 void set covariantKeyword(Token token); |
| 5317 |
| 5318 /** |
5314 * Return the documentation comment associated with this parameter, or `null` | 5319 * Return the documentation comment associated with this parameter, or `null` |
5315 * if this parameter does not have a documentation comment associated with it. | 5320 * if this parameter does not have a documentation comment associated with it. |
5316 */ | 5321 */ |
5317 Comment get documentationComment; | 5322 Comment get documentationComment; |
5318 | 5323 |
5319 /** | 5324 /** |
5320 * Set the documentation comment associated with this parameter to the given | 5325 * Set the documentation comment associated with this parameter to the given |
5321 * [comment]. | 5326 * [comment]. |
5322 */ | 5327 */ |
5323 void set documentationComment(Comment comment); | 5328 void set documentationComment(Comment comment); |
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7034 /** | 7039 /** |
7035 * Return the 'yield' keyword. | 7040 * Return the 'yield' keyword. |
7036 */ | 7041 */ |
7037 Token get yieldKeyword; | 7042 Token get yieldKeyword; |
7038 | 7043 |
7039 /** | 7044 /** |
7040 * Return the 'yield' keyword to the given [token]. | 7045 * Return the 'yield' keyword to the given [token]. |
7041 */ | 7046 */ |
7042 void set yieldKeyword(Token token); | 7047 void set yieldKeyword(Token token); |
7043 } | 7048 } |
OLD | NEW |