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

Unified 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, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/ast/ast_factory.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/ast_factory.dart b/pkg/analyzer/lib/src/dart/ast/ast_factory.dart
index f7e92be807ebd241ee06786c8f05312099177bde..a3a09ee9dae9ca82b2d55be724169fa828473cc9 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast_factory.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast_factory.dart
@@ -361,7 +361,18 @@ class AstFactoryImpl extends AstFactory {
VariableDeclarationList fieldList,
Token semicolon) =>
new FieldDeclarationImpl(
- comment, metadata, staticKeyword, fieldList, semicolon);
+ comment, metadata, null, staticKeyword, fieldList, semicolon);
+
+ @override
+ FieldDeclaration fieldDeclaration2(
+ {Comment comment,
+ List<Annotation> metadata,
+ Token covariantKeyword,
+ Token staticKeyword,
+ @required VariableDeclarationList fieldList,
+ @required Token semicolon}) =>
+ new FieldDeclarationImpl(comment, metadata, covariantKeyword,
+ staticKeyword, fieldList, semicolon);
@override
FieldFormalParameter fieldFormalParameter(
« 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