Index: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
index d70efdc9e1189acab6feec5cf759b80a0be30f14..0a963161b5c35457d54bc2487912e70425bc82d4 100644 |
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
@@ -351,7 +351,7 @@ class ProgramBuilder { |
var stubNames = new Set<String>(); |
librariesMap.forEach((LibraryElement library, List<Element> elements) { |
for (Element e in elements) { |
- if (e is ClassElement && backend.nativeData.isJsInterop(e)) { |
+ if (e is ClassElement && backend.nativeData.isJsInteropClass(e)) { |
e.declaration.forEachMember((_, Element member) { |
var jsName = |
backend.nativeData.getUnescapedJSInteropName(member.name); |
@@ -496,7 +496,7 @@ class ProgramBuilder { |
Class _buildClass(ClassElement element) { |
bool onlyForRti = collector.classesOnlyNeededForRti.contains(element); |
bool hasRtiField = backend.rtiNeed.classNeedsRtiField(element); |
- if (backend.nativeData.isJsInterop(element)) { |
+ if (backend.nativeData.isJsInteropClass(element)) { |
// TODO(jacobr): check whether the class has any active static fields |
// if it does not we can suppress it completely. |
onlyForRti = true; |
@@ -584,7 +584,7 @@ class ProgramBuilder { |
List<StubMethod> checkedSetters = <StubMethod>[]; |
List<StubMethod> isChecks = <StubMethod>[]; |
- if (backend.nativeData.isJsInterop(element)) { |
+ if (backend.nativeData.isJsInteropClass(element)) { |
typeTests.properties.forEach((js.Name name, js.Node code) { |
_classes[helpers.jsInterceptorClass] |
.isChecks |
@@ -612,7 +612,7 @@ class ProgramBuilder { |
// TODO(floitsch): we shouldn't update the registry in the middle of |
// building a class. |
Holder holder = _registry.registerHolder(holderName); |
- bool isInstantiated = !backend.nativeData.isJsInterop(element) && |
+ bool isInstantiated = !backend.nativeData.isJsInteropClass(element) && |
worldBuilder.directlyInstantiatedClasses.contains(element); |
Class result; |