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

Unified Diff: lib/src/ast.dart

Issue 1274763005: Clean up: (Closed) Base URL: https://github.com/dart-lang/markdown.git@master
Patch Set: Bump. Created 5 years, 4 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 | « no previous file | lib/src/block_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/ast.dart
diff --git a/lib/src/ast.dart b/lib/src/ast.dart
index 3290efb85b4713ee4fd3a9098b08328ac201c9f2..6da7ab4f1d54cb3340a63f6f56103e049cffa271 100644
--- a/lib/src/ast.dart
+++ b/lib/src/ast.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library markdown.ast;
+library markdown.src.ast;
typedef Node Resolver(String name);
@@ -22,21 +22,21 @@ class Element implements Node {
Element.empty(this.tag)
: children = null,
- attributes = <String, String>{};
+ attributes = {};
Element.withTag(this.tag)
: children = [],
- attributes = <String, String>{};
+ attributes = {};
Element.text(this.tag, String text)
: children = [new Text(text)],
- attributes = <String, String>{};
+ attributes = {};
bool get isEmpty => children == null;
void accept(NodeVisitor visitor) {
if (visitor.visitElementBefore(this)) {
- for (final child in children) child.accept(visitor);
+ for (var child in children) child.accept(visitor);
visitor.visitElementAfter(this);
}
}
« no previous file with comments | « no previous file | lib/src/block_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698