Home | History | Annotate | Download | only in parsing

Lines Matching refs:node

68   // When visiting a node, we "return" a replacement for that node in
69 // [replacement_]. In many cases this will just be the original node.
82 // Node visitors.
83 #define DEF_VISIT(type) void Visit##type(type* node) override;
115 void Processor::VisitBlock(Block* node) {
124 if (!node->ignore_completion_value()) Process(node->statements());
125 replacement_ = node;
129 void Processor::VisitExpressionStatement(ExpressionStatement* node) {
132 node->set_expression(SetResult(node->expression()));
135 replacement_ = node;
139 void Processor::VisitIfStatement(IfStatement* node) {
142 Visit(node->then_statement());
143 node->set_then_statement(replacement_);
146 Visit(node->else_statement());
147 node->set_else_statement(replacement_);
149 replacement_ = node;
153 replacement_ = AssignUndefinedBefore(node);
158 void Processor::VisitIterationStatement(IterationStatement* node) {
162 Visit(node->body());
163 node->set_body(replacement_);
165 replacement_ = node;
169 replacement_ = AssignUndefinedBefore(node);
174 void Processor::VisitDoWhileStatement(DoWhileStatement* node) {
175 VisitIterationStatement(node);
179 void Processor::VisitWhileStatement(WhileStatement* node) {
180 VisitIterationStatement(node);
184 void Processor::VisitForStatement(ForStatement* node) {
185 VisitIterationStatement(node);
189 void Processor::VisitForInStatement(ForInStatement* node) {
190 VisitIterationStatement(node);
194 void Processor::VisitForOfStatement(ForOfStatement* node) {
195 VisitIterationStatement(node);
199 void Processor::VisitTryCatchStatement(TryCatchStatement* node) {
202 Visit(node->try_block());
203 node->set_try_block(static_cast<Block*>(replacement_));
206 Visit(node->catch_block());
207 node->set_catch_block(static_cast<Block*>(replacement_));
209 replacement_ = node;
213 replacement_ = AssignUndefinedBefore(node);
218 void Processor::VisitTryFinallyStatement(TryFinallyStatement* node) {
222 Visit(node->finally_block());
223 node->set_finally_block(replacement_->AsBlock());
236 node->finally_block()->statements()->InsertAt(
239 node->finally_block()->statements()->Add(
244 Visit(node->try_block());
245 node->set_try_block(replacement_->AsBlock());
246 replacement_ = node;
250 replacement_ = AssignUndefinedBefore(node);
255 void Processor::VisitSwitchStatement(SwitchStatement* node) {
257 ZoneList<CaseClause*>* clauses = node->cases();
264 replacement_ = node;
268 replacement_ = AssignUndefinedBefore(node);
273 void Processor::VisitContinueStatement(ContinueStatement* node) {
275 replacement_ = node;
279 void Processor::VisitBreakStatement(BreakStatement* node) {
281 replacement_ = node;
285 void Processor::VisitWithStatement(WithStatement* node) {
286 Visit(node->statement());
287 node->set_statement(replacement_);
288 replacement_ = node;
292 replacement_ = AssignUndefinedBefore(node);
298 SloppyBlockFunctionStatement* node) {
299 Visit(node->statement());
300 node->set_statement(replacement_);
301 replacement_ = node;
305 void Processor::VisitEmptyStatement(EmptyStatement* node) {
306 replacement_ = node;
310 void Processor::VisitReturnStatement(ReturnStatement* node) {
312 replacement_ = node;
316 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {
317 replacement_ = node;