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 9737c210de41e38138be4b8c1ba5c2dd1f3a3d01..eedc0f65841a37aa6dcbd78733b3c3603a58d257 100644 |
--- a/pkg/compiler/lib/src/elements/entities.dart |
+++ b/pkg/compiler/lib/src/elements/entities.dart |
@@ -5,6 +5,7 @@ |
library entities; |
import '../common.dart'; |
+import '../universe/call_structure.dart' show CallStructure; |
/// Abstract interface for entities. |
/// |
@@ -183,4 +184,11 @@ class ParameterStructure { |
/// The number of optional parameters (positional or named). |
int get optionalParameters => |
positionalParameters - requiredParameters + namedParameters.length; |
+ |
+ /// Returns the [CallStructure] corresponding to a call site passing all |
+ /// parameters both required and optional. |
+ CallStructure get callStructure { |
+ return new CallStructure( |
+ positionalParameters + namedParameters.length, namedParameters); |
+ } |
} |