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

Unified Diff: pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart

Issue 2692273003: Handle mandatory arguments correctly in function type aliases. (Closed)
Patch Set: Remove extra line. 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/builder/formal_parameter_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart b/pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart
index fbe939f641b6097340c9a718c59a5c941d7eeeeb..df8cf944305be469ea5d0b448183df89980ddc1c 100644
--- a/pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart
@@ -34,7 +34,7 @@ abstract class FormalParameterBuilder<T extends TypeBuilder>
bool get isRequired => kind.isRequired;
- bool get isPositional => kind.isPositional;
+ bool get isPositional => kind.isPositional || kind.isRequired;
bool get isNamed => kind.isNamed;
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/kompile.status » ('j') | pkg/front_end/test/fasta/typedef.dart.outline.expect » ('J')

Powered by Google App Engine
This is Rietveld 408576698