Home
last modified time | relevance | path

Searched refs:Body (Results 1 - 25 of 97) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/pgo_test_case/
H A Dclass_test.js16 class Body {
23 class Foot extends Body {
31 class Arm extends Body {
43 let a = new Body(1, 23);
H A Dop_type_test.js16 class Body {
58 return new Body(0.0, 0.0, SOLAR_MASS);
62 return new Body(1.2, 3.1, PI);
/arkcompiler/ets_frontend/ets2panda/evaluate/
H A DevaluateContext.cpp45 std::find_if(methodClass->Body().begin(), methodClass->Body().end(), [expectedMethodName](auto *iter) { in FindEvaluationMethod()
49 ASSERT(evalMethodIter != methodClass->Body().end()); in FindEvaluationMethod()
55 methodStatements = scriptFunction->Body()->AsBlockStatement(); in FindEvaluationMethod()
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_verifier_protected_access_negative_test_4_6.cpp50 ->Body()[1] in TEST_F()
56 ->Body() in TEST_F()
103 ->Body()[1] in TEST_F()
109 ->Body() in TEST_F()
156 ->Body()[1] in TEST_F()
162 ->Body() in TEST_F()
H A Dast_verifier_private_access_negative_test_5_7.cpp50 ->Body()[1] in TEST_F()
56 ->Body() in TEST_F()
103 ->Body()[1] in TEST_F()
109 ->Body() in TEST_F()
156 ->Body()[1] in TEST_F()
162 ->Body() in TEST_F()
H A Dast_verifier_private_access_negative_test_1_4.cpp46 ->Body()[0] in TEST_F()
84 ->Body()[0] in TEST_F()
123 ->Body()[0] in TEST_F()
162 ->Body()[0] in TEST_F()
H A Dast_verifier_protected_access_negative_test_1_3.cpp47 ->Body()[0] in TEST_F()
86 ->Body()[0] in TEST_F()
125 ->Body()[0] in TEST_F()
/arkcompiler/ets_frontend/ets2panda/test/unit/lowerings/
H A Dscopes_initialization.cpp86 auto blockScope = forNode->Body()->AsBlockStatement()->Scope(); in TEST_F()
98 auto name = BodyToFirstName(forNode->Body()); in TEST_F()
117 auto bodyScope = whileNode->Body()->AsBlockStatement()->Scope(); in TEST_F()
121 auto name = BodyToFirstName(whileNode->Body()); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DexpressionLambdaLowering.cpp24 auto *const expr = function->Body()->AsExpression(); in ConvertExpression()
62 node->AsArrowFunctionExpression()->Function()->Body()->IsExpression()) { in Perform()
86 node->AsArrowFunctionExpression()->Function()->Body()->IsExpression(); in Postcondition()
H A DpromiseVoid.cpp150 const auto &body = function->Body(); in Perform()
188 HandleAsyncScriptFunctionBody(checker, function->Body()->AsBlockStatement()); in Perform()
191 HandleAsyncScriptFunctionBody(checker, function->Body()->AsBlockStatement()); in Perform()
232 if (!checkFunctionBody(function->Body()->AsBlockStatement())) { in Postcondition()
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DarithmeticOperationValid.cpp54 for (const auto &member : ast->AsTSInterfaceDeclaration()->Body()->Body()) { in CheckCompound()
66 for (const auto &member : ast->AsClassDefinition()->Body()) { in CheckCompound()
H A DnodeHasType.cpp67 for (const auto &member : ast->AsTSInterfaceDeclaration()->Body()->Body()) { in CheckCompound()
79 for (const auto &member : ast->AsClassDefinition()->Body()) { in CheckCompound()
H A DcheckInfiniteLoop.cpp71 auto const *body = stmt->Body(); in HandleWhileStatement()
89 auto const *body = stmt->Body(); in HandleDoWhileStatement()
107 auto const *body = stmt->Body(); in HandleForUpdateStatement()
109 // Body existence is checked in ForLoopCorrectlyInitialized in HandleForUpdateStatement()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DglobalClassHandler.cpp62 classDef->Body().emplace_back(staticBlock); // NOTE(vpukhov): inserted to end for some reason in SetupGlobalClass()
129 auto &globalBody = globalClass->Body(); in AddInitCallFromStaticBlock()
140 auto *blockBody = staticBlock->Function()->Body()->AsBlockStatement(); in AddInitCallFromStaticBlock()
252 for (const auto *prop : classDef->Body()) { in CreateStaticBlock()
317 globalClass->Body().insert(globalClass->Body().begin(), node); in SetupGlobalMethods()
325 if (!initMethod->Function()->Body()->AsBlockStatement()->Statements().empty()) { in SetupGlobalMethods()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DaliveAnalyzer.cpp213 for (const auto *it : structDecl->Definition()->Body()) { in AnalyzeStructDecl()
222 for (const auto *it : classDecl->Definition()->Body()) { in AnalyzeClassDecl()
233 if (func->Body() == nullptr || func->IsProxy()) { in AnalyzeMethodDef()
238 AnalyzeStat(func->Body()); in AnalyzeMethodDef()
277 AnalyzeStat(doWhile->Body()); in AnalyzeDoLoop()
293 AnalyzeStat(whileStmt->Body()); in AnalyzeWhileLoop()
316 AnalyzeStat(forStmt->Body()); in AnalyzeForLoop()
333 AnalyzeStat(forOfStmt->Body()); in AnalyzeForOfLoop()
356 AnalyzeStat(labelledStmt->Body()); in AnalyzeLabelled()
448 AnalyzeStats(it->Body() in AnalyzeTry()
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DETSfunction.cpp118 bool const compileInitializer = classDef->IsGlobal() ? checkInitializer(classDef->Body()) : true; in CompileAsStaticBlock()
120 for (const auto *prop : classDef->Body()) { in CompileAsStaticBlock()
142 for (const auto *prop : classDef->Body()) { in CompileAsConstructor()
152 if (auto *const body = decl->Body(); body != nullptr && body->IsBlockStatement()) { in CompileFunction()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DdoWhileStatement.h35 const Statement *Body() const in Body() function in ark::es2panda::ark::es2panda::ir::DoWhileStatement
40 Statement *Body() in Body() function in ark::es2panda::ark::es2panda::ir::DoWhileStatement
H A DwhileStatement.h45 const Statement *Body() const in Body() function in ark::es2panda::ark::es2panda::ir::WhileStatement
50 Statement *Body() in Body() function in ark::es2panda::ark::es2panda::ir::WhileStatement
H A DforInStatement.h55 Statement *Body() in Body() function in ark::es2panda::ark::es2panda::ir::ForInStatement
60 const Statement *Body() const in Body() function in ark::es2panda::ark::es2panda::ir::ForInStatement
H A DforUpdateStatement.h65 Statement *Body() in Body() function in ark::es2panda::ark::es2panda::ir::ForUpdateStatement
70 const Statement *Body() const in Body() function in ark::es2panda::ark::es2panda::ir::ForUpdateStatement
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsInterfaceBody.h40 [[nodiscard]] ArenaVector<AstNode *> &Body() noexcept
45 [[nodiscard]] ArenaVector<AstNode *> const &Body() const noexcept
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DforInStatement.h65 Statement *Body() in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::ForInStatement
70 const Statement *Body() const in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::ForInStatement
H A DwhileStatement.h55 const Statement *Body() const in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::WhileStatement
60 Statement *Body() in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::WhileStatement
H A DdoWhileStatement.h45 const Statement *Body() const in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::DoWhileStatement
50 Statement *Body() in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::DoWhileStatement
/arkcompiler/ets_frontend/es2panda/ir/base/
H A DcatchClause.h56 BlockStatement *Body() in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::CatchClause
61 const BlockStatement *Body() const in Body() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::CatchClause

Completed in 9 milliseconds

1234