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

Unified Diff: sdk/lib/_internal/compiler/implementation/dump_info.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/dump_info.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dump_info.dart b/sdk/lib/_internal/compiler/implementation/dump_info.dart
index 988dbb95cf6f112c6f2d1b65993abfc2620cfb7d..764c590d0209e56d2b50290b6a07646b44c49e48 100644
--- a/sdk/lib/_internal/compiler/implementation/dump_info.dart
+++ b/sdk/lib/_internal/compiler/implementation/dump_info.dart
@@ -362,15 +362,15 @@ class InfoDumpVisitor extends ElementVisitor<InfoNode> {
String nameString = element.name;
String modifiersString = "${element.modifiers}";
String kindString = "function";
- if (currentElement.isClass()) {
+ if (currentElement.isClass) {
kindString = "method";
- } else if (currentElement.isField() ||
- currentElement.isFunction() ||
- currentElement.isConstructor()) {
+ } else if (currentElement.isField ||
+ currentElement.isFunction ||
+ currentElement.isConstructor) {
kindString = "closure";
nameString = "<unnamed>";
}
- if (element.isConstructor()) {
+ if (element.isConstructor) {
nameString = element.name == ""
? "${element.enclosingElement.name}"
: "${element.enclosingElement.name}.${element.name}";

Powered by Google App Engine
This is Rietveld 408576698