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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart

Issue 2714843002: Add NormalFormalParameter.covariantKeyword setter and factory parameter. (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
Index: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
index e357b9cd89b35ee2837b266d4da765d16f653bb0..533ef035d361858e503eb5bdd8561f6eefb6e372 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
@@ -506,7 +506,7 @@ class AstBuilder extends ScopeListener {
FormalParameter node;
if (thisKeyword == null) {
node = ast.simpleFormalParameter(
- null, null, toAnalyzerToken(keyword), type, name);
+ null, null, null, toAnalyzerToken(keyword), type, name);
} else {
// TODO(scheglov): Ideally the period token should be passed in.
Token period = identical('.', thisKeyword.next?.stringValue)
@@ -517,6 +517,7 @@ class AstBuilder extends ScopeListener {
node = ast.fieldFormalParameter(
null,
null,
+ null,
toAnalyzerToken(keyword),
type,
toAnalyzerToken(thisKeyword),

Powered by Google App Engine
This is Rietveld 408576698