Index: pkg/compiler/lib/src/elements/entities.dart |
diff --git a/pkg/compiler/lib/src/elements/entities.dart b/pkg/compiler/lib/src/elements/entities.dart |
index 062aef7fdeb75508712cd728e2e81cb137880875..5779cd8d5dd8f0c4491b723e2b20f9c7df967e6f 100644 |
--- a/pkg/compiler/lib/src/elements/entities.dart |
+++ b/pkg/compiler/lib/src/elements/entities.dart |
@@ -252,6 +252,9 @@ class ParameterStructure { |
int get optionalParameters => |
positionalParameters - requiredParameters + namedParameters.length; |
+ /// The total number of parameters (required or optional). |
+ int get totalParameters => positionalParameters + namedParameters.length; |
+ |
/// Returns the [CallStructure] corresponding to a call site passing all |
/// parameters both required and optional. |
CallStructure get callStructure { |