Home
last modified time | relevance | path

Searched refs:firstStatement (Results 1 - 2 of 2) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DobjectLiteralLowering.cpp83 const auto *const firstStatement = blockExpression->Statements().front(); in AllowRequiredTypeInstantiation() local
84 if (!firstStatement->IsVariableDeclaration() || in AllowRequiredTypeInstantiation()
85 !firstStatement->AsVariableDeclaration()->Declarators().front()->Init()->IsETSNewClassInstanceExpression()) { in AllowRequiredTypeInstantiation()
89 const auto *const varDecl = firstStatement->AsVariableDeclaration()->Declarators().front()->Init(); in AllowRequiredTypeInstantiation()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.cpp374 auto firstStatement = statements.front(); in VisitExportClassDeclaration() local
376 if (firstStatement->IsVariableDeclaration()) { in VisitExportClassDeclaration()
377 node->SetDecl(firstStatement->AsVariableDeclaration()); in VisitExportClassDeclaration()
379 ASSERT(firstStatement->IsClassDeclaration()); in VisitExportClassDeclaration()
380 node->SetDecl(firstStatement->AsClassDeclaration()); in VisitExportClassDeclaration()

Completed in 6 milliseconds