Home
last modified time | relevance | path

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

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DscopesInitPhase.cpp673 varbinder::Decl *currentDecl = res->second->Declaration(); in CreateFuncDecl() local
675 auto &existing = currentDecl->AsFunctionDecl()->Decls(); in CreateFuncDecl()
680 if (!currentDecl->IsFunctionDecl() || in CreateFuncDecl()
681 !currentDecl->AsFunctionDecl()->Node()->AsScriptFunction()->IsOverload()) { in CreateFuncDecl()
682 VarBinder()->ThrowRedeclaration(startLoc, currentDecl->Name()); in CreateFuncDecl()
684 decl = currentDecl->AsFunctionDecl(); in CreateFuncDecl()
/arkcompiler/ets_frontend/es2panda/parser/
H A DstatementParser.cpp1259 binder::Decl *currentDecl = res == bindings.end() ? nullptr : res->second->Declaration(); in AddFunctionToBinder() local
1263 (currentDecl->IsClassDecl() && currentDecl->AsClassDecl()->IsDeclare())) { in AddFunctionToBinder()
1267 if (!currentDecl->IsFunctionDecl()) { in AddFunctionToBinder()
1268 Binder()->ThrowRedeclaration(startLoc, currentDecl->Name()); in AddFunctionToBinder()
1271 decl = currentDecl->AsFunctionDecl(); in AddFunctionToBinder()
1274 Binder()->ThrowRedeclaration(startLoc, currentDecl->Name()); in AddFunctionToBinder()

Completed in 8 milliseconds