| Index: pkg/compiler/lib/src/elements/elements.dart
|
| diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
|
| index 1b2e6a58404ed0b5423c3ca3fca59608aab81338..4316c2a22451edd0209706d909214b1043de6a66 100644
|
| --- a/pkg/compiler/lib/src/elements/elements.dart
|
| +++ b/pkg/compiler/lib/src/elements/elements.dart
|
| @@ -927,7 +927,7 @@ class Elements {
|
| // TODO(ngeoffray): Should the resolver do it instead?
|
| CallStructure callStructure = new CallStructure(
|
| signature.parameterCount, signature.type.namedParameters);
|
| - if (!callStructure.signatureApplies(signature.type)) {
|
| + if (!callStructure.signatureApplies(signature.parameterStructure)) {
|
| return false;
|
| }
|
| list.addAll(makeArgumentsList<T>(callStructure, nodes, callee,
|
| @@ -1288,6 +1288,8 @@ abstract class FunctionSignature {
|
| void orderedForEachParameter(void function(FormalElement parameter));
|
|
|
| bool isCompatibleWith(FunctionSignature constructorSignature);
|
| +
|
| + ParameterStructure get parameterStructure;
|
| }
|
|
|
| /// A top level, static or instance method, constructor, local function, or
|
| @@ -1317,6 +1319,9 @@ abstract class FunctionElement extends Element
|
|
|
| /// `true` if this function is external.
|
| bool get isExternal;
|
| +
|
| + /// The structure of the function parameters.
|
| + ParameterStructure get parameterStructure;
|
| }
|
|
|
| /// A getter or setter.
|
|
|