Index: samples/markdown/inline_parser.dart |
diff --git a/samples/markdown/inline_parser.dart b/samples/markdown/inline_parser.dart |
index bdea4f30b0fe5eba70686bc9fe227a029804d898..3a3fbd3aa13ac3bf61139a487002798b4657f62b 100644 |
--- a/samples/markdown/inline_parser.dart |
+++ b/samples/markdown/inline_parser.dart |
@@ -103,11 +103,11 @@ class InlineParser { |
writeTextRange(int start, int end) { |
if (end > start) { |
final text = source.substring(start, end); |
- final nodes = _stack.last().children; |
+ final nodes = _stack.last.children; |
// If the previous node is text too, just append. |
- if ((nodes.length > 0) && (nodes.last() is Text)) { |
- final newNode = new Text('${nodes.last().text}$text'); |
+ if ((nodes.length > 0) && (nodes.last is Text)) { |
+ final newNode = new Text('${nodes.last.text}$text'); |
nodes[nodes.length - 1] = newNode; |
} else { |
nodes.add(new Text(text)); |
@@ -116,7 +116,7 @@ class InlineParser { |
} |
addNode(Node node) { |
- _stack.last().children.add(node); |
+ _stack.last.children.add(node); |
} |
// TODO(rnystrom): Only need this because RegExp doesn't let you start |