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

Unified Diff: lib/html/scripts/idlrenderer.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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
« no previous file with comments | « lib/html/scripts/idlparser.dart ('k') | lib/html/src/native_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/idlrenderer.dart
diff --git a/lib/html/scripts/idlrenderer.dart b/lib/html/scripts/idlrenderer.dart
index e62c4a77fc4731a81fadfb157916c83f13eae8a2..3bf37204282f50a8e170237250751906ff883785 100644
--- a/lib/html/scripts/idlrenderer.dart
+++ b/lib/html/scripts/idlrenderer.dart
@@ -75,13 +75,13 @@ render(idl_node, [indent_str=' ']) {
w(node.extAttrs);
w('interface ${node.id}');
indented(() {
- if (!node.parents.isEmpty()) {
+ if (!node.parents.isEmpty) {
wln(' :');
w(node.parents, ',\n');
}
wln(' {');
section(list, comment) {
- if (list != null && !list.isEmpty()) {
+ if (list != null && !list.isEmpty) {
wln();
wln(comment);
w(sort(list));
@@ -100,7 +100,7 @@ render(idl_node, [indent_str=' ']) {
for (var name in sorted(node.map.getKeys())) {
IDLAnnotation annotation = node.map[name];
var args = annotation.map;
- if (args.isEmpty()) {
+ if (args.isEmpty) {
w('@$name');
} else {
var formattedArgs = [];
@@ -116,7 +116,7 @@ render(idl_node, [indent_str=' ']) {
w(' ');
}
} else if (node is IDLExtAttrs) {
- if(!node.map.isEmpty()) {
+ if(!node.map.isEmpty) {
w('[');
var sep = null;
for (var name in sorted(node.map.getKeys())) {
@@ -149,7 +149,7 @@ render(idl_node, [indent_str=' ']) {
} else if (node is IDLOperation) {
w(node.annotations);
w(node.extAttrs);
- if (node.specials != null && !node.specials.isEmpty()) {
+ if (node.specials != null && !node.specials.isEmpty) {
w(node.specials, ' ');
w(' ');
}
« no previous file with comments | « lib/html/scripts/idlparser.dart ('k') | lib/html/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698