Index: pkg/kernel/lib/ast.dart |
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart |
index 3cd869b03f61ae03a8232c95f5ca021e020124d3..48b4dd14f10a9df12d1809b3454f99b6dcc2f572 100644 |
--- a/pkg/kernel/lib/ast.dart |
+++ b/pkg/kernel/lib/ast.dart |
@@ -4091,13 +4091,20 @@ class FunctionType extends DartType { |
final int requiredParameterCount; |
final List<DartType> positionalParameters; |
final List<NamedType> namedParameters; // Must be sorted. |
+ |
+ /// The optional names of [positionalParameters], might be empty, but |
+ /// not `null`. |
Siggi Cherem (dart-lang)
2017/07/31 17:43:08
it might be a bit confusing if positionalParameter
scheglov
2017/07/31 20:35:30
In flatbuffers every type has default value. For l
|
+ @informative |
Siggi Cherem (dart-lang)
2017/07/31 17:43:07
General question about what we should do about @in
scheglov
2017/07/31 20:35:30
Well, ultimately any computation, which results we
|
+ final List<String> positionalParameterNames; |
+ |
final DartType returnType; |
int _hashCode; |
FunctionType(List<DartType> positionalParameters, this.returnType, |
{this.namedParameters: const <NamedType>[], |
this.typeParameters: const <TypeParameter>[], |
- int requiredParameterCount}) |
+ int requiredParameterCount, |
+ this.positionalParameterNames: const <String>[]}) |
: this.positionalParameters = positionalParameters, |
this.requiredParameterCount = |
requiredParameterCount ?? positionalParameters.length; |