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

Side by Side Diff: pkg/analyzer/lib/src/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/src/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.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/dart/ast/ast_factory.dart'; 6 import 'package:analyzer/dart/ast/ast_factory.dart';
7 import 'package:analyzer/src/dart/ast/ast.dart'; 7 import 'package:analyzer/src/dart/ast/ast.dart';
8 import 'package:analyzer/src/generated/utilities_dart.dart'; 8 import 'package:analyzer/src/generated/utilities_dart.dart';
9 import 'package:front_end/src/scanner/token.dart'; 9 import 'package:front_end/src/scanner/token.dart';
10 import 'package:meta/meta.dart'; 10 import 'package:meta/meta.dart';
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 new ExtendsClauseImpl(extendsKeyword, superclass); 354 new ExtendsClauseImpl(extendsKeyword, superclass);
355 355
356 @override 356 @override
357 FieldDeclaration fieldDeclaration( 357 FieldDeclaration fieldDeclaration(
358 Comment comment, 358 Comment comment,
359 List<Annotation> metadata, 359 List<Annotation> metadata,
360 Token staticKeyword, 360 Token staticKeyword,
361 VariableDeclarationList fieldList, 361 VariableDeclarationList fieldList,
362 Token semicolon) => 362 Token semicolon) =>
363 new FieldDeclarationImpl( 363 new FieldDeclarationImpl(
364 comment, metadata, staticKeyword, fieldList, semicolon); 364 comment, metadata, null, staticKeyword, fieldList, semicolon);
365
366 @override
367 FieldDeclaration fieldDeclaration2(
368 {Comment comment,
369 List<Annotation> metadata,
370 Token covariantKeyword,
371 Token staticKeyword,
372 @required VariableDeclarationList fieldList,
373 @required Token semicolon}) =>
374 new FieldDeclarationImpl(comment, metadata, covariantKeyword,
375 staticKeyword, fieldList, semicolon);
365 376
366 @override 377 @override
367 FieldFormalParameter fieldFormalParameter( 378 FieldFormalParameter fieldFormalParameter(
368 Comment comment, 379 Comment comment,
369 List<Annotation> metadata, 380 List<Annotation> metadata,
370 Token keyword, 381 Token keyword,
371 TypeAnnotation type, 382 TypeAnnotation type,
372 Token thisKeyword, 383 Token thisKeyword,
373 Token period, 384 Token period,
374 SimpleIdentifier identifier, 385 SimpleIdentifier identifier,
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 961
951 @override 962 @override
952 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes) => 963 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes) =>
953 new WithClauseImpl(withKeyword, mixinTypes); 964 new WithClauseImpl(withKeyword, mixinTypes);
954 965
955 @override 966 @override
956 YieldStatement yieldStatement(Token yieldKeyword, Token star, 967 YieldStatement yieldStatement(Token yieldKeyword, Token star,
957 Expression expression, Token semicolon) => 968 Expression expression, Token semicolon) =>
958 new YieldStatementImpl(yieldKeyword, star, expression, semicolon); 969 new YieldStatementImpl(yieldKeyword, star, expression, semicolon);
959 } 970 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698