Home
last modified time | relevance | path

Searched refs:body (Results 1 - 25 of 94) sorted by relevance

1234

/arkcompiler/runtime_core/assembler/
H A Dasm_metadata.rb96 body = []
100 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
103 body << "#{indent * 2}if (HasAttribute(attribute)) {"
104 body << "#{indent * 3}return Error(\"Attribute '#{attribute_name(a)}' already defined\","
105 body << "#{indent * 3} Error::Type::MULTIPLE_ATTRIBUTE);"
106 body << "#{indent * 2}}"
111 body << "#{indent * 2}if (value == \"#{v.value}\") {"
112 body << "#{indent * 3}return {};"
113 body << "#{indent * 2}}"
114 body << ""
[all...]
/arkcompiler/runtime_core/static_core/assembler/
H A Dasm_metadata.rb96 body = []
100 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
103 body << "#{indent * 2}if (HasAttribute(attribute)) {"
104 body << "#{indent * 3}return Error(\"Attribute '#{attribute_name(a)}' already defined\","
105 body << "#{indent * 3} Error::Type::MULTIPLE_ATTRIBUTE);"
106 body << "#{indent * 2}}"
111 body << "#{indent * 2}if (value == \"#{v.value}\") {"
112 body << "#{indent * 3}return {};"
113 body << "#{indent * 2}}"
114 body << ""
[all...]
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DcheckInfiniteLoop.cpp58 bool CheckInfiniteLoop::HasBreakOrReturnStatement(const ir::Statement *const body) const in HasBreakOrReturnStatement()
60 ASSERT(body); in HasBreakOrReturnStatement()
61 bool hasExit = body->IsBreakStatement() || body->IsReturnStatement(); in HasBreakOrReturnStatement()
62 body->IterateRecursively( in HasBreakOrReturnStatement()
71 auto const *body = stmt->Body(); in HandleWhileStatement() local
73 if ((body == nullptr) || (test == nullptr)) { in HandleWhileStatement()
78 if (!HasBreakOrReturnStatement(body)) { in HandleWhileStatement()
89 auto const *body = stmt->Body(); in HandleDoWhileStatement() local
91 if ((body in HandleDoWhileStatement()
107 auto const *body = stmt->Body(); HandleForUpdateStatement() local
[all...]
H A DcheckContext.h61 return [sourceName, phaseName, severity, this](JsonObjectBuilder &body) { in DumpJSON()
62 body.AddProperty("severity", CheckSeverityString(severity)); in DumpJSON()
63 body.AddProperty("invariant", invariantName_); in DumpJSON()
64 body.AddProperty("cause", cause_); in DumpJSON()
65 body.AddProperty("ast", message_); in DumpJSON()
66 body.AddProperty("line", line_ + 1); in DumpJSON()
67 body.AddProperty("source", sourceName); in DumpJSON()
68 body.AddProperty("phase", phaseName); in DumpJSON()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dc2i_bridge_test.cpp172 std::ostringstream body; in MakeCheckArgsMethod() local
177 body << "lda.null\n"; in MakeCheckArgsMethod()
178 body << "jne.obj a0, fail\n"; in MakeCheckArgsMethod()
195 body = GetBodyPrologue(shortyIt, argsIt, args, argNum); in MakeCheckArgsMethod()
198 body << "ldai " << *argsIt << '\n'; in MakeCheckArgsMethod()
199 body << "jne a" << argNum << ", fail\n"; in MakeCheckArgsMethod()
208 FillBodyEpilogue(retType, body); in MakeCheckArgsMethod()
210 out = GetFileWithInfo(ctx, retType, signature, body); in MakeCheckArgsMethod()
231 std::ostringstream body; in GetBodyPrologue() local
233 body << "flda in GetBodyPrologue()
256 FillBodyEpilogue(const TypeId &retType, std::ostringstream &body) FillBodyEpilogue() argument
273 GetFileWithInfo(LanguageContext &ctx, TypeId retType, const std::ostringstream &signature, const std::ostringstream &body) GetFileWithInfo() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/
H A DmethodBuilder.cpp103 auto *body = CreateBody(std::move(statements)); in Build() local
106 return CreateIrConstructor<false>(id, body); in Build()
109 return CreateIrConstructor<true>(id, body); in Build()
111 return CreateIrMethod(id, body); in Build()
138 ir::BlockStatement *body = nullptr; in CreateBody() local
141 body = checker_->AllocNode<ir::BlockStatement>(checker_->Allocator(), std::move(statements)); in CreateBody()
144 return body; in CreateBody()
163 ir::AstNode *MethodBuilder::CreateIrConstructor(ir::Identifier *id, ir::BlockStatement *body) in CreateIrConstructor() argument
168 auto *funcExpr = CreateFunctionExpression(id, body, scriptFuncFlags); in CreateIrConstructor()
183 ir::MethodDefinition *MethodBuilder::CreateIrMethod(ir::Identifier *id, ir::BlockStatement *body) in CreateIrMethod() argument
194 CreateFunctionExpression(ir::Identifier *id, ir::BlockStatement *body, ir::ScriptFunctionFlags scriptFuncFlags) CreateFunctionExpression() argument
[all...]
H A DmethodBuilder.h78 ir::AstNode *CreateIrConstructor(ir::Identifier *id, ir::BlockStatement *body);
80 ir::MethodDefinition *CreateIrMethod(ir::Identifier *id, ir::BlockStatement *body);
81 ir::FunctionExpression *CreateFunctionExpression(ir::Identifier *id, ir::BlockStatement *body,
/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DnamespaceDefinition.h42 explicit NamespaceDefinition(Identifier *ident, ArenaVector<AstNode *> &&body, MethodDefinition *ctor, in NamespaceDefinition() argument
48 body_(std::move(body)), in NamespaceDefinition()
116 void AddProperties(ArenaVector<AstNode *> &&body) in AddProperties() argument
118 for (auto *prop : body) { in AddProperties()
122 body_.insert(body_.end(), body.begin(), body.end()); in AddProperties()
H A DclassDefinition.h73 Expression *superClass, ArenaVector<AstNode *> &&body, ClassDefinitionModifiers modifiers, in ClassDefinition()
83 body_(std::move(body)), in ClassDefinition()
93 explicit ClassDefinition(ArenaAllocator *allocator, Identifier *ident, ArenaVector<AstNode *> &&body, in ClassDefinition() argument
98 body_(std::move(body)), in ClassDefinition()
254 void AddProperties(ArenaVector<AstNode *> &&body) in AddProperties() argument
256 for (auto *prop : body) { in AddProperties()
260 body_.insert(body_.end(), body.begin(), body.end()); in AddProperties()
70 ClassDefinition(const util::StringView &privateId, Identifier *ident, TSTypeParameterDeclaration *typeParams, TSTypeParameterInstantiation *superTypeParams, ArenaVector<TSClassImplements *> &&implements, MethodDefinition *ctor, Expression *superClass, ArenaVector<AstNode *> &&body, ClassDefinitionModifiers modifiers, ModifierFlags flags, Language lang) ClassDefinition() argument
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DpromiseVoid.cpp34 ir::BlockStatement *body) in HandleAsyncScriptFunctionBody()
37 body->TransformChildrenRecursively( in HandleAsyncScriptFunctionBody()
54 return body; in HandleAsyncScriptFunctionBody()
150 const auto &body = function->Body(); in Perform()
163 const auto &loc = body->Range(); in Perform()
206 auto checkFunctionBody = [](const ir::BlockStatement *body) -> bool { in Postcondition()
207 if (!body->IsReturnStatement()) { in Postcondition()
210 auto *returnStmt = body->AsReturnStatement(); in Postcondition()
33 HandleAsyncScriptFunctionBody(checker::ETSChecker *checker, ir::BlockStatement *body) HandleAsyncScriptFunctionBody() argument
H A DenumLowering.cpp99 bodyBlock = checker_->AllocNode<ir::BlockStatement>(Allocator(), std::move(functionInfo.body)); in MakeFunction()
217 auto *body = checker_->AllocNode<ir::BlockStatement>(Allocator(), std::move(statements)); in CreateCCtorForEnumClass() local
220 ir::ScriptFunction::ScriptFunctionData {body, ir::FunctionSignature(nullptr, std::move(params), nullptr), in CreateCCtorForEnumClass()
226 body->SetScope(functionScope); in CreateCCtorForEnumClass()
289 auto *body = checker_->AllocNode<ir::BlockStatement>(Allocator(), std::move(statements)); in CreateCtorForEnumClass() local
292 ir::ScriptFunction::ScriptFunctionData {body, ir::FunctionSignature(nullptr, std::move(params), nullptr), in CreateCtorForEnumClass()
297 body->SetScope(functionScope); in CreateCtorForEnumClass()
315 initStatement->SetParent(body); in CreateCtorForEnumClass()
316 body->Statements().push_back(initStatement); in CreateCtorForEnumClass()
626 ArenaVector<ir::Statement *> body(Allocato
[all...]
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
H A DcatchClauseBuilder.h35 CatchClauseBuilder &SetBody(BlockStatement *body) in SetBody() argument
37 body_ = body; in SetBody()
H A DdoWhileStatementBuilder.h35 DoWhileStatementBuilder &SetBody(Statement *body) in SetBody() argument
37 body_ = body; in SetBody()
H A DforOfStatementBuilder.h41 ForOfStatementBuilder &SetBody(Statement *body) in SetBody() argument
43 body_ = body; in SetBody()
H A DforInStatementBuilder.h41 ForInStatementBuilder &SetBody(Statement *body) in SetBody() argument
43 body_ = body; in SetBody()
H A DlabelledStatementBuilder.h35 LabelledStatementBuilder &SetBody(Statement *body) in SetBody() argument
37 body_ = body; in SetBody()
H A DtsInterfaceBodyBuilder.h31 TSInterfaceBodyBuilder &AddBody(AstNode *body) in AddBody() argument
33 body_.emplace_back(body); in AddBody()
H A DwhileStatementBuilder.h35 WhileStatementBuilder &SetBody(Statement *body) in SetBody() argument
37 body_ = body; in SetBody()
H A DforUpdateStatementBuilder.h41 ForUpdateStatementBuilder &SetBody(Statement *body) in SetBody() argument
43 body_ = body; in SetBody()
H A DtsModuleDeclarationBuilder.h35 TSModuleDeclarationBuilder &SetBody(Statement *body) in SetBody() argument
37 body_ = body; in SetBody()
/arkcompiler/ets_frontend/es2panda/ir/ts/
H A DtsInterfaceBody.h34 explicit TSInterfaceBody(ArenaVector<Expression *> &&body) in TSInterfaceBody() argument
35 : Expression(AstNodeType::TS_INTERFACE_BODY), body_(std::move(body)) in TSInterfaceBody()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DETSfunction.cpp152 if (auto *const body = decl->Body(); body != nullptr && body->IsBlockStatement()) { in CompileFunction()
153 CompileSourceBlock(etsg, body->AsBlockStatement()); in CompileFunction()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DdoWhileStatement.h30 explicit DoWhileStatement(Statement *body, Expression *test) in DoWhileStatement() argument
31 : LoopStatement(AstNodeType::DO_WHILE_STATEMENT), body_(body), test_(test) in DoWhileStatement()
H A DlabelledStatement.h31 explicit LabelledStatement(Identifier *ident, Statement *body) in LabelledStatement() argument
32 : Statement(AstNodeType::LABELLED_STATEMENT), ident_(ident), body_(body) in LabelledStatement()
H A DwhileStatement.h30 explicit WhileStatement(Expression *test, Statement *body) in WhileStatement() argument
31 : LoopStatement(AstNodeType::WHILE_STATEMENT), test_(test), body_(body) in WhileStatement()

Completed in 9 milliseconds

1234