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

Side by Side Diff: pkg/analyzer/lib/dart/ast/ast_factory.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 | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/src/generated/utilities_dart.dart'; 6 import 'package:analyzer/src/generated/utilities_dart.dart';
7 import 'package:front_end/src/scanner/token.dart'; 7 import 'package:front_end/src/scanner/token.dart';
8 import 'package:meta/meta.dart'; 8 import 'package:meta/meta.dart';
9 9
10 /** 10 /**
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 /** 405 /**
406 * Returns a newly created field declaration. Either or both of the 406 * Returns a newly created field declaration. Either or both of the
407 * [comment] and [metadata] can be `null` if the declaration does not have the 407 * [comment] and [metadata] can be `null` if the declaration does not have the
408 * corresponding attribute. The [staticKeyword] can be `null` if the field is 408 * corresponding attribute. The [staticKeyword] can be `null` if the field is
409 * not a static field. 409 * not a static field.
410 */ 410 */
411 FieldDeclaration fieldDeclaration(Comment comment, List<Annotation> metadata, 411 FieldDeclaration fieldDeclaration(Comment comment, List<Annotation> metadata,
412 Token staticKeyword, VariableDeclarationList fieldList, Token semicolon); 412 Token staticKeyword, VariableDeclarationList fieldList, Token semicolon);
413 413
414 /** 414 /**
415 * Returns a newly created field declaration. Either or both of the
416 * [comment] and [metadata] can be `null` if the declaration does not have the
417 * corresponding attribute. The [staticKeyword] can be `null` if the field is
418 * not a static field.
419 */
420 FieldDeclaration fieldDeclaration2(
421 {Comment comment,
422 List<Annotation> metadata,
423 Token covariantKeyword,
424 Token staticKeyword,
425 @required VariableDeclarationList fieldList,
426 @required Token semicolon});
427
428 /**
415 * Returns a newly created formal parameter. Either or both of the 429 * Returns a newly created formal parameter. Either or both of the
416 * [comment] and [metadata] can be `null` if the parameter does not have the 430 * [comment] and [metadata] can be `null` if the parameter does not have the
417 * corresponding attribute. The [keyword] can be `null` if there is a type. 431 * corresponding attribute. The [keyword] can be `null` if there is a type.
418 * The [type] must be `null` if the keyword is 'var'. The [thisKeyword] and 432 * The [type] must be `null` if the keyword is 'var'. The [thisKeyword] and
419 * [period] can be `null` if the keyword 'this' was not provided. The 433 * [period] can be `null` if the keyword 'this' was not provided. The
420 * [parameters] can be `null` if this is not a function-typed field formal 434 * [parameters] can be `null` if this is not a function-typed field formal
421 * parameter. 435 * parameter.
422 */ 436 */
423 FieldFormalParameter fieldFormalParameter( 437 FieldFormalParameter fieldFormalParameter(
424 Comment comment, 438 Comment comment,
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 */ 1101 */
1088 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes); 1102 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes);
1089 1103
1090 /** 1104 /**
1091 * Returns a newly created yield expression. The [star] can be `null` if no 1105 * Returns a newly created yield expression. The [star] can be `null` if no
1092 * star was provided. 1106 * star was provided.
1093 */ 1107 */
1094 YieldStatement yieldStatement( 1108 YieldStatement yieldStatement(
1095 Token yieldKeyword, Token star, Expression expression, Token semicolon); 1109 Token yieldKeyword, Token star, Expression expression, Token semicolon);
1096 } 1110 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698