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

Unified Diff: utils/apidoc/mdn/extract.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files 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 | « tests/standalone/io/test_runner_test.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/mdn/extract.dart
diff --git a/utils/apidoc/mdn/extract.dart b/utils/apidoc/mdn/extract.dart
index 5844e2eec8a4c74817c23063bcd04b12a572c816..062d3c2c6e4d545bd5be0eb1abe44e95d7a5ecdf 100644
--- a/utils/apidoc/mdn/extract.dart
+++ b/utils/apidoc/mdn/extract.dart
@@ -433,8 +433,8 @@ String genCleanHtml(Element root) {
// Trim useless nodes from the back.
while (root.nodes.length > 0 &&
- isSkippable(root.nodes.last())) {
- root.nodes.last().remove();
+ isSkippable(root.nodes.last)) {
+ root.nodes.last.remove();
changed = true;
}
}
@@ -1183,7 +1183,7 @@ void run() {
bool foundMatch = false;
// Test out if the title is really an HTML tag that matches the
// current class name.
- for (String tag in [title.split(" ")[0], title.split(".").last()]) {
+ for (String tag in [title.split(" ")[0], title.split(".").last]) {
try {
Element element = new Element.tag(tag);
// TODO(jacobr): this is a really ugly way of doing this that will
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698