| 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 2973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 * A node representing a parameter to a function. | 2984 * A node representing a parameter to a function. |
| 2985 * | 2985 * |
| 2986 * formalParameter ::= | 2986 * formalParameter ::= |
| 2987 * [NormalFormalParameter] | 2987 * [NormalFormalParameter] |
| 2988 * | [DefaultFormalParameter] | 2988 * | [DefaultFormalParameter] |
| 2989 * | 2989 * |
| 2990 * Clients may not extend, implement or mix-in this class. | 2990 * Clients may not extend, implement or mix-in this class. |
| 2991 */ | 2991 */ |
| 2992 abstract class FormalParameter extends AstNode { | 2992 abstract class FormalParameter extends AstNode { |
| 2993 /** | 2993 /** |
| 2994 * The 'covariant' keyword, or `null` if the keyword was not used. |
| 2995 */ |
| 2996 Token get covariantKeyword; |
| 2997 |
| 2998 /** |
| 2994 * Return the element representing this parameter, or `null` if this parameter | 2999 * Return the element representing this parameter, or `null` if this parameter |
| 2995 * has not been resolved. | 3000 * has not been resolved. |
| 2996 */ | 3001 */ |
| 2997 ParameterElement get element; | 3002 ParameterElement get element; |
| 2998 | 3003 |
| 2999 /** | 3004 /** |
| 3000 * Return the name of the parameter being declared. | 3005 * Return the name of the parameter being declared. |
| 3001 */ | 3006 */ |
| 3002 SimpleIdentifier get identifier; | 3007 SimpleIdentifier get identifier; |
| 3003 | 3008 |
| (...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7071 /** | 7076 /** |
| 7072 * Return the 'yield' keyword. | 7077 * Return the 'yield' keyword. |
| 7073 */ | 7078 */ |
| 7074 Token get yieldKeyword; | 7079 Token get yieldKeyword; |
| 7075 | 7080 |
| 7076 /** | 7081 /** |
| 7077 * Return the 'yield' keyword to the given [token]. | 7082 * Return the 'yield' keyword to the given [token]. |
| 7078 */ | 7083 */ |
| 7079 void set yieldKeyword(Token token); | 7084 void set yieldKeyword(Token token); |
| 7080 } | 7085 } |
| OLD | NEW |