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

Unified Diff: dart/lib/compiler/implementation/tree/prettyprint.dart

Issue 10982089: Remove AbstractVisitor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
Index: dart/lib/compiler/implementation/tree/prettyprint.dart
diff --git a/dart/lib/compiler/implementation/tree/prettyprint.dart b/dart/lib/compiler/implementation/tree/prettyprint.dart
index 6a23fdbeafdd1590761a75abe7b1e62d96c62c12..1755c01d5499121b3698a5c48504e669d587dd9d 100644
--- a/dart/lib/compiler/implementation/tree/prettyprint.dart
+++ b/dart/lib/compiler/implementation/tree/prettyprint.dart
@@ -216,20 +216,20 @@ class PrettyPrinter implements Visitor {
}
// Custom.
- visitLiteral(Literal node, String type) {
+ printLiteral(Literal node, String type) {
openAndCloseNode(node, type, {"value" : node.value.toString()});
}
visitLiteralBool(LiteralBool node) {
- visitLiteral(node, "LiteralBool");
+ printLiteral(node, "LiteralBool");
}
visitLiteralDouble(LiteralDouble node) {
- visitLiteral(node, "LiteralDouble");
+ printLiteral(node, "LiteralDouble");
}
visitLiteralInt(LiteralInt node) {
- visitLiteral(node, "LiteralInt");
+ printLiteral(node, "LiteralInt");
}
/** Returns token string value or [null] if token is [null]. */
@@ -253,7 +253,7 @@ class PrettyPrinter implements Visitor {
}
visitLiteralNull(LiteralNull node) {
- visitLiteral(node, "LiteralNull");
+ printLiteral(node, "LiteralNull");
}
visitLiteralString(LiteralString node) {
« no previous file with comments | « dart/lib/compiler/implementation/tree/nodes.dart ('k') | dart/lib/compiler/implementation/tree/visitors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698