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

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

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: lib/html/scripts/idlrenderer.dart
diff --git a/lib/html/scripts/idlrenderer.dart b/lib/html/scripts/idlrenderer.dart
index 3bf37204282f50a8e170237250751906ff883785..77801757f8503692ea3bdfe92579384bd4402afb 100644
--- a/lib/html/scripts/idlrenderer.dart
+++ b/lib/html/scripts/idlrenderer.dart
@@ -48,7 +48,7 @@ render(idl_node, [indent_str=' ']) {
if (node == null) {
return;
} else if (node is String) {
- if (output.last().endsWith('\n'))
+ if (output.last.endsWith('\n'))
output.addAll(indent_stack);
output.add(node);
} else if (node is List) {

Powered by Google App Engine
This is Rietveld 408576698