Lines Matching defs:statements
38 #include "ir/statements/assertStatement.h"
39 #include "ir/statements/blockStatement.h"
40 #include "ir/statements/breakStatement.h"
41 #include "ir/statements/classDeclaration.h"
42 #include "ir/statements/continueStatement.h"
43 #include "ir/statements/debuggerStatement.h"
44 #include "ir/statements/doWhileStatement.h"
45 #include "ir/statements/emptyStatement.h"
46 #include "ir/statements/expressionStatement.h"
47 #include "ir/statements/forInStatement.h"
48 #include "ir/statements/forOfStatement.h"
49 #include "ir/statements/forUpdateStatement.h"
50 #include "ir/statements/functionDeclaration.h"
51 #include "ir/statements/ifStatement.h"
52 #include "ir/statements/labelledStatement.h"
53 #include "ir/statements/returnStatement.h"
54 #include "ir/statements/switchCaseStatement.h"
55 #include "ir/statements/switchStatement.h"
56 #include "ir/statements/throwStatement.h"
57 #include "ir/statements/tryStatement.h"
58 #include "ir/statements/variableDeclaration.h"
59 #include "ir/statements/variableDeclarator.h"
60 #include "ir/statements/whileStatement.h"
356 ArenaVector<ir::Statement *> statements(Allocator()->Adapter());
357 ParseDirectivePrologue(&statements);
364 statements.push_back(statement);
368 return statements;
371 bool ParserImpl::ParseDirective(ArenaVector<ir::Statement *> *statements)
392 statements->push_back(exprStatement);
397 void ParserImpl::ParseDirectivePrologue(ArenaVector<ir::Statement *> *statements)
400 if (lexer_->GetToken().Type() != lexer::TokenType::LITERAL_STRING || !ParseDirective(statements)) {
419 auto statements = ParseStatementList();
425 auto *blockNode = AllocNode<ir::BlockStatement>(Allocator(), std::move(statements));