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

Side by Side Diff: pkg/compiler/lib/src/tree/prettyprint.dart

Issue 1873823002: Update elements, nodes and visitors for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix LocalVariableElementZ.constant Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import '../tokens/token.dart' show BeginGroupToken, Token; 5 import '../tokens/token.dart' show BeginGroupToken, Token;
6 import '../util/util.dart'; 6 import '../util/util.dart';
7 import 'nodes.dart'; 7 import 'nodes.dart';
8 8
9 /** 9 /**
10 * Pretty-prints Node tree in XML-like format. 10 * Pretty-prints Node tree in XML-like format.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 visitExpressionStatement(ExpressionStatement node) { 119 visitExpressionStatement(ExpressionStatement node) {
120 visitNodeWithChildren(node, "ExpressionStatement"); 120 visitNodeWithChildren(node, "ExpressionStatement");
121 } 121 }
122 122
123 visitFor(For node) { 123 visitFor(For node) {
124 visitNodeWithChildren(node, "For"); 124 visitNodeWithChildren(node, "For");
125 } 125 }
126 126
127 visitForIn(ForIn node) {
128 node.visitChildren(this);
129 closeNode();
130 }
131
127 visitAsyncForIn(AsyncForIn node) { 132 visitAsyncForIn(AsyncForIn node) {
128 openNode(node, "AsyncForIn"); 133 openNode(node, "AsyncForIn");
134 visitForIn(node);
129 } 135 }
130 136
131 visitSyncForIn(SyncForIn node) { 137 visitSyncForIn(SyncForIn node) {
132 openNode(node, "ForIn"); 138 openNode(node, "SyncForIn");
133 node.visitChildren(this); 139 visitForIn(node);
134 closeNode();
135 } 140 }
136 141
137 visitFunctionDeclaration(FunctionDeclaration node) { 142 visitFunctionDeclaration(FunctionDeclaration node) {
138 visitNodeWithChildren(node, "FunctionDeclaration"); 143 visitNodeWithChildren(node, "FunctionDeclaration");
139 } 144 }
140 145
141 visitFunctionExpression(FunctionExpression node) { 146 visitFunctionExpression(FunctionExpression node) {
142 openNode(node, "FunctionExpression", { 147 openNode(node, "FunctionExpression", {
143 "getOrSet" : tokenToStringOrNull(node.getOrSet) 148 "getOrSet" : tokenToStringOrNull(node.getOrSet)
144 }); 149 });
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 } 477 }
473 478
474 visitGotoStatement(GotoStatement node) { 479 visitGotoStatement(GotoStatement node) {
475 unimplemented('visitNode', node: node); 480 unimplemented('visitNode', node: node);
476 } 481 }
477 482
478 unimplemented(String message, {Node node}) { 483 unimplemented(String message, {Node node}) {
479 throw message; 484 throw message;
480 } 485 }
481 } 486 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698