/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | checkScopeDeclaration.cpp | 64 if (functionScope->ParamScope() == scope) { in CheckScope() 81 if (catchScope->ParamScope() == scope) { in CheckScope()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | capturedVariables.cpp | 28 scopes.emplace(node->Scope()->AsFunctionScope()->ParamScope()); 31 scopes.emplace(node->Scope()->AsCatchScope()->ParamScope());
|
H A D | boxingForLocals.cpp | 33 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 D | localClassLowering.cpp | 138 auto *newParam = CreateParam(checker, constructor->Scope()->ParamScope(), var->Name(), var->TsType()); in ModifyConstructorParameters() 142 auto ¶mScopeParams = constructor->Scope()->ParamScope()->Params(); in ModifyConstructorParameters()
|
H A D | lambdaLowering.cpp | 50 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 D | catchClause.cpp | 49 compiler::LocalRegScope lrs(pg, scope_->ParamScope()); in Compile() 90 auto paramScopeCtx = binder::LexicalScope<binder::CatchParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf()
|
H A D | scriptFunction.cpp | 113 auto paramScopeCtx = binder::LexicalScope<binder::FunctionParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf()
|
H A D | scriptFunction.h | 62 scope_->ParamScope()->RemoveThisParam(THIS_PARAM); in ScriptFunction()
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | scope.h | 421 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 D | varbinder.cpp | 79 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 D | variableFlags.h | 56 _(PARAM, ParamScope) \
|
H A D | ETSBinder.cpp | 314 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 D | scope.h | 619 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 D | binder.cpp | 80 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 D | variableFlags.h | 51 _(PARAM, ParamScope) \
|
H A D | scope.cpp | 472 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 D | function.cpp | 70 ScopeContext scopeCtx(pg, func->Scope()->ParamScope()); in CompileFunctionParameterDeclaration() 233 auto *funcParamScope = pg->TopScope()->ParamScope(); in CompileFunction()
|
H A D | regScope.cpp | 96 for (auto *param : funcScope->ParamScope()->Params()) { in InitializeParams()
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | arrowFunctionExpression.cpp | 149 Function()->Scope()->ParamScope()->IsSuperscopeOf(var->GetScope()); in IsVarFromSubscope()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | regScope.cpp | 99 for (auto *param : funcScope->ParamScope()->Params()) { in FunctionRegScope()
|
H A D | function.cpp | 75 ScopeContext scopeCtx(pg, func->Scope()->ParamScope()); in CompileFunctionParameterDeclaration() 243 auto *funcParamScope = pg->TopScope()->ParamScope(); in CompileFunction()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ |
H A D | util.cpp | 85 scopes.insert(ast->Scope()->AsFunctionScope()->ParamScope());
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
H A D | hoisting.cpp | 55 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | function_helpers.h | 256 return ast->AsScriptFunction()->Scope()->ParamScope(); in NodeScope()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | scopesInitPhase.cpp | 109 : 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()
|