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

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

Issue 2965223002: Change inference element invariants (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/common_elements.dart ('k') | pkg/compiler/lib/src/inferrer/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index 5a092f3dd50467e361b761d615959009e803519d..f89bec3c3f0693f593298104b55efdd1fbaa4200 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -263,7 +263,8 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
String returnType = null;
List<ParameterInfo> parameters = <ParameterInfo>[];
if (element.hasFunctionSignature) {
- FunctionSignature signature = element.functionSignature;
+ FunctionElement implementation = element.implementation;
+ FunctionSignature signature = implementation.functionSignature;
signature.forEachParameter((parameter) {
parameters.add(new ParameterInfo(parameter.name,
'${_resultOfParameter(parameter).type}', '${parameter.node.type}'));
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/inferrer/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698