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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.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/inferrer/builder.dart
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart
index ae3c1c62ad0da8aafb68435c9941e77a76afd0f7..add6babf74a74fbf539fbd3978dcf5fe415eb628 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -2316,8 +2316,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
// In erroneous code the number of arguments in the selector might not
// match the function element.
// TODO(polux): return nonNullEmpty and check it doesn'TypeInformation break anything
- if (target.isMalformed ||
- !callStructure.signatureApplies(target.functionSignature)) {
+ if (target.isMalformed || !callStructure.signatureApplies(target.type)) {
return types.dynamicType;
}

Powered by Google App Engine
This is Rietveld 408576698