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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolved_visitor.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/resolved_visitor.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolved_visitor.dart b/sdk/lib/_internal/compiler/implementation/resolved_visitor.dart
index edf4c2c6b94e66a2365f135e447326d50bef8809..f9660031ec5dfb90e36d9b9fa68424608285a853 100644
--- a/sdk/lib/_internal/compiler/implementation/resolved_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolved_visitor.dart
@@ -17,7 +17,7 @@ abstract class ResolvedVisitor<R> extends Visitor<R> {
} else if (node.isOperator) {
return visitOperatorSend(node);
} else if (node.isPropertyAccess) {
- if (!Elements.isUnresolved(element) && element.impliesType()) {
+ if (!Elements.isUnresolved(element) && element.impliesType) {
// A reference to a class literal, typedef or type variable.
return visitTypeReferenceSend(node);
} else {
@@ -39,13 +39,13 @@ abstract class ResolvedVisitor<R> extends Visitor<R> {
} else {
return visitStaticSend(node);
}
- } else if (element.impliesType()) {
+ } else if (element.impliesType) {
// A reference to a class literal, typedef or type variable.
return visitTypeReferenceSend(node);
- } else if (element.isInstanceMember()) {
+ } else if (element.isInstanceMember) {
// Example: f() with 'f' bound to instance method.
return visitDynamicSend(node);
- } else if (!element.isInstanceMember()) {
+ } else if (!element.isInstanceMember) {
// Example: A.f() or f() with 'f' bound to a static function.
// Also includes new A() or new A.named() which is treated like a
// static call to a factory.

Powered by Google App Engine
This is Rietveld 408576698