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

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

Issue 2722033002: Add an AST factory method for fieldDeclaration with all optional named parameters. (Closed)
Patch Set: Created 3 years, 9 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/dart/ast/ast_factory.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 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/ast/ast_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698