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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart

Issue 266913017: Convert property methods into getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 6 years, 7 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/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);
}
}

Powered by Google App Engine
This is Rietveld 408576698