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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart

Issue 562123002: Support parameter access in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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: sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
index dd5884bb28ba5d89430c1ba6de1a5126225fa0cd..e5905ff2320ec7b1831296f39359afea7043de65 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
@@ -368,8 +368,8 @@ abstract class TracerVisitor<T extends TypeInformation>
}
void visitParameterTypeInformation(ParameterTypeInformation info) {
- Element element = info.element;
- if (inferrer.isNativeElement(element.enclosingElement)) {
+ ParameterElement element = info.element;
+ if (inferrer.isNativeElement(element.functionDeclaration)) {
bailout('Passed to a native method');
}
if (!inferrer.compiler.backend

Powered by Google App Engine
This is Rietveld 408576698