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

Unified Diff: utils/template/htmltree.dart

Issue 10908291: Reapply "Remove Object.dynamic." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/template/htmltree.dart
diff --git a/utils/template/htmltree.dart b/utils/template/htmltree.dart
index ad941f7f8b38cc70fbe3255fb274604cb39372de..e243d1d0e50f0fae6308cdd7db8a9ed267ef2f01 100644
--- a/utils/template/htmltree.dart
+++ b/utils/template/htmltree.dart
@@ -361,9 +361,10 @@ class TreePrinter implements TreeVisitor {
void visitTemplateDocument(TemplateDocument node) {
output.heading('Content', node.span);
output.depth++;
- // TODO(terry): Ugly use dynamic[0] instead children[0] to surpress warning.
+ // TODO(terry): Ugly use of 'as Dynamic' instead of children[0] to
+ // surpress warning.
assert(node.children.length == 1 &&
- node.children.dynamic[0].tagTokenId == -1);
+ (node.children as Dynamic)[0].tagTokenId == -1);
output.writeNodeList("document", node.children);
output.depth--;
}
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698