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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.dart

Issue 2721403006: Split NativeData (Closed)
Patch Set: Created 3 years, 10 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 f50ab31ca3bcf135d45a266fd8b9ab65e2afdee0..ea4b8c833eb25a18e30f08c96f42de0929d8b7bd 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -937,7 +937,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
inferrer.setDefaultTypeOfParameter(element, type);
});
- if (compiler.backend.isNative(analyzedElement)) {
+ if (inferrer.isNativeMember(analyzedElement)) {
// Native methods do not have a body, and we currently just say
// they return dynamic.
return types.dynamicType;

Powered by Google App Engine
This is Rietveld 408576698