Home
last modified time | relevance | path

Searched refs:ParamScope (Results 1 - 25 of 36) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DcheckScopeDeclaration.cpp64 if (functionScope->ParamScope() == scope) { in CheckScope()
81 if (catchScope->ParamScope() == scope) { in CheckScope()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DcapturedVariables.cpp28 scopes.emplace(node->Scope()->AsFunctionScope()->ParamScope());
31 scopes.emplace(node->Scope()->AsCatchScope()->ParamScope());
H A DboxingForLocals.cpp33 innermostArrowScopes.insert(func->Scope()->ParamScope()); in FindCaptured()
53 innermostArrowScopes.insert(ast->Scope()->AsFunctionScope()->ParamScope()); in FindCaptured()
56 innermostArrowScopes.insert(ast->Scope()->AsCatchScope()->ParamScope()); in FindCaptured()
H A DlocalClassLowering.cpp138 auto *newParam = CreateParam(checker, constructor->Scope()->ParamScope(), var->Name(), var->TsType()); in ModifyConstructorParameters()
142 auto &paramScopeParams = constructor->Scope()->ParamScope()->Params(); in ModifyConstructorParameters()
H A DlambdaLowering.cpp50 varbinder::ParamScope *paramScope = nullptr;
163 varbinder::LexicalScope<varbinder::ParamScope>::Enter(varBinder, calleeParameterInfo.paramScope); in CreateLambdaCalleeParameters()
255 auto *paramScope = funcScope->ParamScope(); in SetUpCalleeMethod()
306 varbinder::ParamScope *paramScope, ir::ScriptFunction *func) in GetAndApplyFunctionScope()
/arkcompiler/ets_frontend/es2panda/ir/base/
H A DcatchClause.cpp49 compiler::LocalRegScope lrs(pg, scope_->ParamScope()); in Compile()
90 auto paramScopeCtx = binder::LexicalScope<binder::CatchParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf()
H A DscriptFunction.cpp113 auto paramScopeCtx = binder::LexicalScope<binder::FunctionParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf()
H A DscriptFunction.h62 scope_->ParamScope()->RemoveThisParam(THIS_PARAM); in ScriptFunction()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.h421 class ParamScope : public Scope { class
441 explicit ParamScope(ArenaAllocator *allocator, Scope *parent) in ParamScope() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::ParamScope
454 class FunctionParamScope : public ParamScope {
456 explicit FunctionParamScope(ArenaAllocator *allocator, Scope *parent) : ParamScope(allocator, parent) {} in FunctionParamScope()
511 T *ParamScope() in ParamScope() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::ScopeWithParamScope
516 const T *ParamScope() const in ParamScope() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::ScopeWithParamScope
754 class CatchParamScope : public ParamScope {
756 explicit CatchParamScope(ArenaAllocator *allocator, Scope *parent) : ParamScope(allocator, parent) {} in CatchParamScope()
H A Dvarbinder.cpp79 auto [decl, node, var] = static_cast<ParamScope *>(scope_)->AddParamDecl(Allocator(), param); in AddParamDecl()
464 auto paramScopeCtx = LexicalScope<CatchParamScope>::Enter(this, catchClauseStmt->Scope()->ParamScope()); in BuildCatchClause()
504 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope()); in VisitScriptFunction()
686 topScope_->ParamScope()->Params().back()->SetLexical(topScope_); in AddMandatoryParams()
H A DvariableFlags.h56 _(PARAM, ParamScope) \
H A DETSBinder.cpp314 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, func->Scope()->ParamScope()); in ResolveMethodDefinition()
316 auto params = func->Scope()->ParamScope()->Params(); in ResolveMethodDefinition()
396 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, func->Scope()->ParamScope()); in AddFunctionThisParam()
408 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, func->Scope()->ParamScope()); in BuildProxyMethod()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dscope.h619 class ParamScope : public Scope { class
650 explicit ParamScope(ArenaAllocator *allocator, Scope *parent) in ParamScope() function in ParamScope
662 class FunctionParamScope : public ParamScope {
664 explicit FunctionParamScope(ArenaAllocator *allocator, Scope *parent) : ParamScope(allocator, parent) {} in FunctionParamScope()
729 T *ParamScope() in ParamScope() function in ScopeWithParamScope
734 const T *ParamScope() const in ParamScope() function in ScopeWithParamScope
942 class CatchParamScope : public ParamScope {
944 explicit CatchParamScope(ArenaAllocator *allocator, Scope *parent) : ParamScope(allocator, parent) {} in CatchParamScope()
H A Dbinder.cpp80 auto [decl, node] = static_cast<ParamScope *>(scope_)->AddParamDecl(Allocator(), param); in AddParamDecl()
442 funcScope->ParamScope()->SetParent(outerScope); in BuildScriptFunction()
684 auto paramScopeCtx = LexicalScope<CatchParamScope>::Enter(this, catchClauseStmt->Scope()->ParamScope()); in BuildCatchClause()
790 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope()); in ResolveReference()
960 auto &funcParams = scope_->AsFunctionVariableScope()->ParamScope()->Params(); in AddMandatoryParam()
962 scope_->AsFunctionVariableScope()->ParamScope()->Bindings().insert({decl->Name(), param}); in AddMandatoryParam()
H A DvariableFlags.h51 _(PARAM, ParamScope) \
H A Dscope.cpp472 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags) in AddParam()
488 std::tuple<ParameterDecl *, const ir::AstNode *> ParamScope::AddParamDecl(ArenaAllocator *allocator, in AddParamDecl()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A Dfunction.cpp70 ScopeContext scopeCtx(pg, func->Scope()->ParamScope()); in CompileFunctionParameterDeclaration()
233 auto *funcParamScope = pg->TopScope()->ParamScope(); in CompileFunction()
H A DregScope.cpp96 for (auto *param : funcScope->ParamScope()->Params()) { in InitializeParams()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DarrowFunctionExpression.cpp149 Function()->Scope()->ParamScope()->IsSuperscopeOf(var->GetScope()); in IsVarFromSubscope()
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DregScope.cpp99 for (auto *param : funcScope->ParamScope()->Params()) { in FunctionRegScope()
H A Dfunction.cpp75 ScopeContext scopeCtx(pg, func->Scope()->ParamScope()); in CompileFunctionParameterDeclaration()
243 auto *funcParamScope = pg->TopScope()->ParamScope(); in CompileFunction()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/
H A Dutil.cpp85 scopes.insert(ast->Scope()->AsFunctionScope()->ParamScope());
/arkcompiler/ets_frontend/es2panda/compiler/base/
H A Dhoisting.cpp55 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dfunction_helpers.h256 return ast->AsScriptFunction()->Scope()->ParamScope(); in NodeScope()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DscopesInitPhase.cpp109 : function->Scope()->ParamScope(); in HandleFunction()
195 VarBinder(), catchClause->Scope()->ParamScope()); in VisitCatchClause()
468 auto *funcParamScope = func->Scope()->ParamScope(); in VisitFunctionExpression()
801 VarBinder(), func->Scope()->ParamScope()); in VisitClassStaticBlock()

Completed in 30 milliseconds

12