Lines Matching refs:body
103 auto *body = CreateBody(std::move(statements));
106 return CreateIrConstructor<false>(id, body);
109 return CreateIrConstructor<true>(id, body);
111 return CreateIrMethod(id, body);
138 ir::BlockStatement *body = nullptr;
141 body = checker_->AllocNode<ir::BlockStatement>(checker_->Allocator(), std::move(statements));
144 return body;
163 ir::AstNode *MethodBuilder::CreateIrConstructor(ir::Identifier *id, ir::BlockStatement *body)
168 auto *funcExpr = CreateFunctionExpression(id, body, scriptFuncFlags);
183 ir::MethodDefinition *MethodBuilder::CreateIrMethod(ir::Identifier *id, ir::BlockStatement *body)
186 auto *funcExpr = CreateFunctionExpression(id, body, ir::ScriptFunctionFlags::METHOD);
194 ir::FunctionExpression *MethodBuilder::CreateFunctionExpression(ir::Identifier *id, ir::BlockStatement *body,
202 ir::ScriptFunction::ScriptFunctionData {body, std::move(funcSignature), scriptFuncFlags, modifierFlags_});