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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 2809603002: Introduce ParameterStructure (Closed)
Patch Set: Fix. Created 3 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698