| Index: sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
|
| index af6c82ebfab97fc72248ce496fb0941cb1818fc9..76db0c732c4ef2fd3afa12b62bbf474c42736247 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
|
| @@ -35,7 +35,7 @@ class TypeTestEmitter extends CodeEmitterHelper {
|
| if (cachedClassesUsingTypeVariableTests == null) {
|
| cachedClassesUsingTypeVariableTests = compiler.codegenWorld.isChecks
|
| .where((DartType t) => t is TypeVariableType)
|
| - .map((TypeVariableType v) => v.element.getEnclosingClass())
|
| + .map((TypeVariableType v) => v.element.enclosingClass)
|
| .toList();
|
| }
|
| return cachedClassesUsingTypeVariableTests;
|
| @@ -116,7 +116,7 @@ class TypeTestEmitter extends CodeEmitterHelper {
|
| ClassElement superclass = cls.superclass;
|
|
|
| bool haveSameTypeVariables(ClassElement a, ClassElement b) {
|
| - if (a.isClosure()) return true;
|
| + if (a.isClosure) return true;
|
| return backend.rti.isTrivialSubstitution(a, b);
|
| }
|
|
|
| @@ -166,7 +166,7 @@ class TypeTestEmitter extends CodeEmitterHelper {
|
| // If [cls] is a closure, it has a synthetic call operator method.
|
| call = cls.lookupBackendMember(Compiler.CALL_OPERATOR_NAME);
|
| }
|
| - if (call != null && call.isFunction()) {
|
| + if (call != null && call.isFunction) {
|
| generateInterfacesIsTests(compiler.functionClass,
|
| emitIsTest,
|
| emitSubstitution,
|
| @@ -372,12 +372,12 @@ class TypeTestEmitter extends CodeEmitterHelper {
|
| }
|
|
|
| bool canTearOff(Element function) {
|
| - if (!function.isFunction() ||
|
| - function.isConstructor() ||
|
| - function.isAccessor()) {
|
| + if (!function.isFunction ||
|
| + function.isConstructor ||
|
| + function.isAccessor) {
|
| return false;
|
| - } else if (function.isInstanceMember()) {
|
| - if (!function.getEnclosingClass().isClosure()) {
|
| + } else if (function.isInstanceMember) {
|
| + if (!function.enclosingClass.isClosure) {
|
| return compiler.codegenWorld.hasInvokedGetter(function, compiler);
|
| }
|
| }
|
|
|