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 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2758 * | 2758 * |
2759 * Clients may not extend, implement or mix-in this class. | 2759 * Clients may not extend, implement or mix-in this class. |
2760 */ | 2760 */ |
2761 abstract class FieldDeclaration extends ClassMember { | 2761 abstract class FieldDeclaration extends ClassMember { |
2762 /** | 2762 /** |
2763 * The 'covariant' keyword, or `null` if the keyword was not used. | 2763 * The 'covariant' keyword, or `null` if the keyword was not used. |
2764 */ | 2764 */ |
2765 Token get covariantKeyword; | 2765 Token get covariantKeyword; |
2766 | 2766 |
2767 /** | 2767 /** |
| 2768 * Set the token for the 'covariant' keyword to the given [token]. |
| 2769 */ |
| 2770 void set covariantKeyword(Token token); |
| 2771 |
| 2772 /** |
2768 * Return the fields being declared. | 2773 * Return the fields being declared. |
2769 */ | 2774 */ |
2770 VariableDeclarationList get fields; | 2775 VariableDeclarationList get fields; |
2771 | 2776 |
2772 /** | 2777 /** |
2773 * Set the fields being declared to the given list of [fields]. | 2778 * Set the fields being declared to the given list of [fields]. |
2774 */ | 2779 */ |
2775 void set fields(VariableDeclarationList fields); | 2780 void set fields(VariableDeclarationList fields); |
2776 | 2781 |
2777 /** | 2782 /** |
(...skipping 4261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7039 /** | 7044 /** |
7040 * Return the 'yield' keyword. | 7045 * Return the 'yield' keyword. |
7041 */ | 7046 */ |
7042 Token get yieldKeyword; | 7047 Token get yieldKeyword; |
7043 | 7048 |
7044 /** | 7049 /** |
7045 * Return the 'yield' keyword to the given [token]. | 7050 * Return the 'yield' keyword to the given [token]. |
7046 */ | 7051 */ |
7047 void set yieldKeyword(Token token); | 7052 void set yieldKeyword(Token token); |
7048 } | 7053 } |
OLD | NEW |