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

Unified Diff: pkg/compiler/lib/src/resolution/send_structure.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/resolution/members.dart ('k') | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/send_structure.dart
diff --git a/pkg/compiler/lib/src/resolution/send_structure.dart b/pkg/compiler/lib/src/resolution/send_structure.dart
index 5d6aae19698d39a1c2fa9b2abd866870cfa0d2df..1b5b7cd66b260a6cffb4aa3f1e911ceca1fa8a0e 100644
--- a/pkg/compiler/lib/src/resolution/send_structure.dart
+++ b/pkg/compiler/lib/src/resolution/send_structure.dart
@@ -2116,7 +2116,8 @@ class NewInvokeStructure<R, A> extends NewStructure<R, A> {
ConstructorElement effectiveTarget = constructor.effectiveTarget;
ResolutionInterfaceType effectiveTargetType =
constructor.computeEffectiveTargetType(semantics.type);
- if (callStructure.signatureApplies(effectiveTarget.type)) {
+ if (callStructure
+ .signatureApplies(effectiveTarget.parameterStructure)) {
return visitor.visitRedirectingFactoryConstructorInvoke(
node,
semantics.element,
@@ -2136,7 +2137,7 @@ class NewInvokeStructure<R, A> extends NewStructure<R, A> {
arg);
}
}
- if (callStructure.signatureApplies(constructor.type)) {
+ if (callStructure.signatureApplies(constructor.parameterStructure)) {
return visitor.visitFactoryConstructorInvoke(node, constructor,
semantics.type, node.send.argumentsNode, callStructure, arg);
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698