Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: pkg/analyzer/lib/dart/ast/ast.dart

Issue 2639323002: Add missing AST support for covariant keyword and fix bug from previous CL (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 /** 2753 /**
2754 * The declaration of one or more fields of the same type. 2754 * The declaration of one or more fields of the same type.
2755 * 2755 *
2756 * fieldDeclaration ::= 2756 * fieldDeclaration ::=
2757 * 'static'? [VariableDeclarationList] ';' 2757 * 'static'? [VariableDeclarationList] ';'
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.
2764 */
2765 Token get covariantKeyword;
2766
2767 /**
2763 * Return the fields being declared. 2768 * Return the fields being declared.
2764 */ 2769 */
2765 VariableDeclarationList get fields; 2770 VariableDeclarationList get fields;
2766 2771
2767 /** 2772 /**
2768 * Set the fields being declared to the given list of [fields]. 2773 * Set the fields being declared to the given list of [fields].
2769 */ 2774 */
2770 void set fields(VariableDeclarationList fields); 2775 void set fields(VariableDeclarationList fields);
2771 2776
2772 /** 2777 /**
(...skipping 4256 matching lines...) Expand 10 before | Expand all | Expand 10 after
7029 /** 7034 /**
7030 * Return the 'yield' keyword. 7035 * Return the 'yield' keyword.
7031 */ 7036 */
7032 Token get yieldKeyword; 7037 Token get yieldKeyword;
7033 7038
7034 /** 7039 /**
7035 * Return the 'yield' keyword to the given [token]. 7040 * Return the 'yield' keyword to the given [token].
7036 */ 7041 */
7037 void set yieldKeyword(Token token); 7042 void set yieldKeyword(Token token);
7038 } 7043 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698