Lines Matching defs:statements

20 #include "ir/statements/classDeclaration.h"
30 #include "ir/statements/expressionStatement.h"
31 #include "ir/statements/blockStatement.h"
39 static bool FunctionExists(const ArenaVector<ir::Statement *> &statements, const std::string_view name)
41 for (auto stmt : statements) {
68 ArenaVector<GlobalStmts> statements(allocator_->Adapter());
84 statements.emplace_back(GlobalStmts {program, std::move(stmts)});
96 auto initStatements = FormInitMethodStatements(globalProgram, moduleDependencies, std::move(statements));
103 ArenaVector<ir::Statement *> &&statements)
108 auto body = NodeAllocator::ForceSetParent<ir::BlockStatement>(allocator_, allocator_, std::move(statements));
214 ArenaVector<ir::Statement *> statements(allocator_->Adapter());
216 FormDependentInitTriggers(statements, moduleDependencies);
219 statements.insert(statements.end(), ps.begin(), ps.end());
221 for (auto st : statements) {
224 return statements;
227 void GlobalClassHandler::FormDependentInitTriggers(ArenaVector<ir::Statement *> &statements,
230 auto const sequence = [&statements](ir::Statement *stmt) { statements.push_back(stmt); };
269 ArenaVector<ir::Statement *> statements(allocator_->Adapter());
271 auto *body = NodeAllocator::Alloc<ir::BlockStatement>(allocator_, allocator_, std::move(statements));
293 auto statements = globalDecl.TransformStatements(ast->Statements(), addInitializer);
294 classDef->AddProperties(util::Helpers::ConvertVector<ir::AstNode>(statements.classProperties));
296 return std::move(statements.initStatements);