Home
last modified time | relevance | path

Searched refs:currentScope (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp232 auto currentScope = scope_; in ValidateExportDecl() local
233 while (currentScope != nullptr) { in ValidateExportDecl()
234 if (currentScope->FindLocal(localName, ResolveBindingOptions::ALL) != nullptr || in ValidateExportDecl()
235 (currentScope->IsTSModuleScope() && (currentScope->InLocalTSBindings(localName) || in ValidateExportDecl()
236 currentScope->AsTSModuleScope()->InExportBindings(localName)))) { in ValidateExportDecl()
239 currentScope = currentScope->Parent(); in ValidateExportDecl()
241 if (currentScope != nullptr) { in ValidateExportDecl()
1051 auto currentScope in FindIdentifierTSVariables() local
[all...]
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.cpp109 auto currentScope = Scope(); in AddVariableToNearestStatements() local
110 while (currentScope != nullptr) { in AddVariableToNearestStatements()
111 if (currentScope->IsTSModuleScope()) { in AddVariableToNearestStatements()
112 auto node = currentScope->Node(); in AddVariableToNearestStatements()
118 if (currentScope->IsFunctionScope()) { in AddVariableToNearestStatements()
119 auto node = currentScope->Node(); in AddVariableToNearestStatements()
125 currentScope = currentScope->Parent(); in AddVariableToNearestStatements()
127 tempVarDeclStatements_.insert({name, currentScope}); in AddVariableToNearestStatements()
167 auto currentScope in FindExportVariableInTsModuleScope() local
1717 auto *currentScope = scope; FindTSModuleVariable() local
[all...]
/arkcompiler/ets_frontend/es2panda/parser/
H A DparserImpl.cpp3616 auto *currentScope = Binder()->GetScope(); in ParseEnumDeclaration() local
3617 binder::Variable *res = currentScope->FindLocalTSVariable<binder::TSBindingType::ENUMLITERAL>(ident); in ParseEnumDeclaration()
3618 if (res == nullptr && isExport && currentScope->IsTSModuleScope()) { in ParseEnumDeclaration()
3619 res = currentScope->AsTSModuleScope()->FindExportTSVariable<binder::TSBindingType::ENUMLITERAL>(ident); in ParseEnumDeclaration()
3621 currentScope->AddLocalTSVariable<binder::TSBindingType::ENUMLITERAL>(ident, res); in ParseEnumDeclaration()
3627 res = currentScope->FindLocalTSVariable<binder::TSBindingType::ENUMLITERAL>(ident); in ParseEnumDeclaration()
3628 if (isExport && currentScope->IsTSModuleScope()) { in ParseEnumDeclaration()
3629 currentScope->AsTSModuleScope()->AddExportTSVariable<binder::TSBindingType::ENUMLITERAL>(ident, res); in ParseEnumDeclaration()

Completed in 10 milliseconds