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

Unified Diff: pkg/analyzer/lib/src/dart/ast/ast.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/dart/ast/ast_factory.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast_factory.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.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart
index c4a31773eee8e54116d47f3d043b0f418c344d89..0a364cf9dc2b128fbeca46d8b760a5019dddf5fc 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -4325,6 +4325,7 @@ class FieldDeclarationImpl extends ClassMemberImpl implements FieldDeclaration {
/**
* The 'covariant' keyword, or `null` if the keyword was not used.
*/
+ @override
Token covariantKeyword;
/**
@@ -4351,8 +4352,13 @@ class FieldDeclarationImpl extends ClassMemberImpl implements FieldDeclaration {
* corresponding attribute. The [staticKeyword] can be `null` if the field is
* not a static field.
*/
- FieldDeclarationImpl(CommentImpl comment, List<Annotation> metadata,
- this.staticKeyword, VariableDeclarationListImpl fieldList, this.semicolon)
+ FieldDeclarationImpl(
+ CommentImpl comment,
+ List<Annotation> metadata,
+ this.covariantKeyword,
+ this.staticKeyword,
+ VariableDeclarationListImpl fieldList,
+ this.semicolon)
: super(comment, metadata) {
_fieldList = _becomeParentOf(fieldList);
}
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast_factory.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698