Home
last modified time | relevance | path

Searched refs:funcScope (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_frontend/es2panda/compiler/core/
DregScope.cpp88 const auto *funcScope = pg_->Scope()->AsFunctionVariableScope(); in FunctionRegScope() local
90 for (auto *param : funcScope->ParamScope()->Params()) { in FunctionRegScope()
99 for (const auto &[_, var] : funcScope->Bindings()) { in FunctionRegScope()
111 pg_->debugInfo_.variableDebugInfo.push_back(funcScope); in FunctionRegScope()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.cpp344 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunctio… in BuildFunction() argument
346 if (funcScope->InFunctionScopes()) { in BuildFunction()
349 functionScopes_.push_back(funcScope); in BuildFunction()
350 funcScope->SetInFunctionScopes(); in BuildFunction()
358 funcScope->BindName(name, util::UString(internalName, Allocator()).View()); in BuildFunction()
388 funcScope->BindName(name, util::UString(internalNameStr, Allocator()).View()); in BuildFunction()
656 auto *funcScope = scriptFunc->Scope(); in ResolveReference() local
665 … auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope()); in ResolveReference()
691 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference()
827 [[maybe_unused]] auto *funcScope = *iter++; in AddMandatoryParams() local
[all …]
Dbinder.h199 …void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func…
Dscope.h502 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() argument
504 functionScope_ = funcScope; in BindFunctionScope()
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dhoisting.cpp52 auto *funcScope = scope->EnclosingFunctionVariableScope(); in HoistVar() local
53 if (funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp1419 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsModule() local
1420 binder::FunctionParamScope *funcParamScope = funcScope->ParamScope(); in CreateCallExpressionForTsModule()
1432 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), funcScope); in CreateCallExpressionForTsModule()
1433 tsModuleList_.push_back({paramName, funcScope}); in CreateCallExpressionForTsModule()
1441 blockNode = AllocNode<ir::BlockStatement>(funcScope, std::move(statements)); in CreateCallExpressionForTsModule()
1444 blockNode = AllocNode<ir::BlockStatement>(funcScope, in CreateCallExpressionForTsModule()
1448 funcScope->AddBindsFromParam(); in CreateCallExpressionForTsModule()
1451 …funcNode = AllocNode<ir::ScriptFunction>(funcScope, std::move(params), nullptr, blockNode, nullptr, in CreateCallExpressionForTsModule()
1454 funcScope->BindNode(funcNode); in CreateCallExpressionForTsModule()
1558 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsEnum() local
[all …]
/arkcompiler/ets_frontend/ts2panda/src/statement/
DclassStatement.ts187 let funcScope = recorder.buildVariableScope(scope, ctorNode);
188 funcScope.setParent(parentScope);
190 let ctorBodyScope = new LocalScope(funcScope);
191 ctorBodyScope.setParent(funcScope);
193 recorder.setScopeMap(ctorNode, funcScope);