Lines Matching refs:stmt
117 Statement* stmt = stmts->at(i);
118 RECURSE(Visit(stmt));
119 if (stmt->IsJump()) break;
137 void AstTraversalVisitor<Subclass>::VisitBlock(Block* stmt) {
138 PROCESS_NODE(stmt);
139 RECURSE(VisitStatements(stmt->statements()));
144 ExpressionStatement* stmt) {
145 PROCESS_NODE(stmt);
146 RECURSE(Visit(stmt->expression()));
150 void AstTraversalVisitor<Subclass>::VisitEmptyStatement(EmptyStatement* stmt) {}
154 SloppyBlockFunctionStatement* stmt) {
155 PROCESS_NODE(stmt);
156 RECURSE(Visit(stmt->statement()));
160 void AstTraversalVisitor<Subclass>::VisitIfStatement(IfStatement* stmt) {
161 PROCESS_NODE(stmt);
162 RECURSE(Visit(stmt->condition()));
163 RECURSE(Visit(stmt->then_statement()));
164 RECURSE(Visit(stmt->else_statement()));
169 ContinueStatement* stmt) {
170 PROCESS_NODE(stmt);
174 void AstTraversalVisitor<Subclass>::VisitBreakStatement(BreakStatement* stmt) {
175 PROCESS_NODE(stmt);
180 ReturnStatement* stmt) {
181 PROCESS_NODE(stmt);
182 RECURSE(Visit(stmt->expression()));
186 void AstTraversalVisitor<Subclass>::VisitWithStatement(WithStatement* stmt) {
187 PROCESS_NODE(stmt);
188 RECURSE(Visit(stmt->expression()));
189 RECURSE(Visit(stmt->statement()));
194 SwitchStatement* stmt) {
195 PROCESS_NODE(stmt);
196 RECURSE(Visit(stmt->tag()));
198 ZoneList<CaseClause*>* clauses = stmt->cases();
217 DoWhileStatement* stmt) {
218 PROCESS_NODE(stmt);
219 RECURSE(Visit(stmt->body()));
220 RECURSE(Visit(stmt->cond()));
224 void AstTraversalVisitor<Subclass>::VisitWhileStatement(WhileStatement* stmt) {
225 PROCESS_NODE(stmt);
226 RECURSE(Visit(stmt->cond()));
227 RECURSE(Visit(stmt->body()));
231 void AstTraversalVisitor<Subclass>::VisitForStatement(ForStatement* stmt) {
232 PROCESS_NODE(stmt);
233 if (stmt->init() != NULL) {
234 RECURSE(Visit(stmt->init()));
236 if (stmt->cond() != NULL) {
237 RECURSE(Visit(stmt->cond()));
239 if (stmt->next() != NULL) {
240 RECURSE(Visit(stmt->next()));
242 RECURSE(Visit(stmt->body()));
246 void AstTraversalVisitor<Subclass>::VisitForInStatement(ForInStatement* stmt) {
247 PROCESS_NODE(stmt);
248 RECURSE(Visit(stmt->enumerable()));
249 RECURSE(Visit(stmt->body()));
253 void AstTraversalVisitor<Subclass>::VisitForOfStatement(ForOfStatement* stmt) {
254 PROCESS_NODE(stmt);
255 RECURSE(Visit(stmt->assign_iterator()));
256 RECURSE(Visit(stmt->next_result()));
257 RECURSE(Visit(stmt->result_done()));
258 RECURSE(Visit(stmt->assign_each()));
259 RECURSE(Visit(stmt->body()));
264 TryCatchStatement* stmt) {
265 PROCESS_NODE(stmt);
266 RECURSE(Visit(stmt->try_block()));
267 RECURSE(Visit(stmt->catch_block()));
272 TryFinallyStatement* stmt) {
273 PROCESS_NODE(stmt);
274 RECURSE(Visit(stmt->try_block()));
275 RECURSE(Visit(stmt->finally_block()));
280 DebuggerStatement* stmt) {
281 PROCESS_NODE(stmt);