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

Unified Diff: pkg/compiler/lib/src/resolution/send_structure.dart

Issue 2630743002: Remove use of FunctionSignature et al from call_structure.dart (Closed)
Patch Set: Created 3 years, 11 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
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 6f9d97fb0ef705d21bd6a0644389850814c38931..799b0a2ca240c9f3f78dfd7d96a23a7ddcd41048 100644
--- a/pkg/compiler/lib/src/resolution/send_structure.dart
+++ b/pkg/compiler/lib/src/resolution/send_structure.dart
@@ -2116,8 +2116,7 @@ class NewInvokeStructure<R, A> extends NewStructure<R, A> {
ConstructorElement effectiveTarget = constructor.effectiveTarget;
ResolutionInterfaceType effectiveTargetType =
constructor.computeEffectiveTargetType(semantics.type);
- if (callStructure
- .signatureApplies(effectiveTarget.functionSignature)) {
+ if (callStructure.signatureApplies(effectiveTarget.type)) {
return visitor.visitRedirectingFactoryConstructorInvoke(
node,
semantics.element,
@@ -2137,7 +2136,7 @@ class NewInvokeStructure<R, A> extends NewStructure<R, A> {
arg);
}
}
- if (callStructure.signatureApplies(constructor.functionSignature)) {
+ if (callStructure.signatureApplies(constructor.type)) {
return visitor.visitFactoryConstructorInvoke(node, constructor,
semantics.type, node.send.argumentsNode, callStructure, arg);
}

Powered by Google App Engine
This is Rietveld 408576698