/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | varbinder.cpp | 374 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in BuildClassProperty() 402 auto scopeCtx = LexicalScope<LocalScope>::Enter(this, classDef->Scope()); in BuildClassDefinition() 426 auto declScopeCtx = LexicalScope<LoopDeclarationScope>::Enter(this, loopScope->DeclScope()); in BuildForUpdateLoop() 436 auto loopCtx = LexicalScope<LoopScope>::Enter(this, loopScope); in BuildForUpdateLoop() 450 auto declScopeCtx = LexicalScope<LoopDeclarationScope>::Enter(this, loopScope->DeclScope()); in BuildForInOfLoop() 455 auto loopCtx = LexicalScope<LoopScope>::Enter(this, loopScope); in BuildForInOfLoop() 464 auto paramScopeCtx = LexicalScope<CatchParamScope>::Enter(this, catchClauseStmt->Scope()->ParamScope()); in BuildCatchClause() 468 auto scopeCtx = LexicalScope<CatchScope>::Enter(this, catchClauseStmt->Scope()); in BuildCatchClause() 475 const auto typeAliasScope = LexicalScope<LocalScope>::Enter(this, typeAliasDecl->TypeParams()->Scope()); in BuildTypeAliasDeclaration() 504 auto paramScopeCtx = LexicalScope<FunctionParamScop in VisitScriptFunction() [all...] |
H A D | varbinder.h | 165 friend class LexicalScope; 278 class LexicalScope { class 281 explicit LexicalScope(VarBinder *varbinder, Args &&...args) in LexicalScope() function in ark::es2panda::ark::es2panda::ark::es2panda::ark::es2panda::varbinder::LexicalScope 282 : LexicalScope( in LexicalScope() 293 ~LexicalScope() in ~LexicalScope() 300 [[nodiscard]] static LexicalScope<T> Enter(VarBinder *varbinder, T *scope, bool checkEval = true) in Enter() 302 LexicalScope<T> lexScope(scope, varbinder); in Enter() 332 DEFAULT_MOVE_SEMANTIC(LexicalScope); 335 NO_COPY_SEMANTIC(LexicalScope); 337 explicit LexicalScope( function in ark::es2panda::ark::es2panda::ark::es2panda::ark::es2panda::varbinder::LexicalScope [all...] |
H A D | ETSBinder.cpp | 176 auto scopeCtx = LexicalScope<Scope>::Enter(this, scope); in ResolveReferenceForScope() 182 auto scope_ctx = LexicalScope<Scope>::Enter(this, node->AsBlockStatement()->Scope()); in ResolveReferenceForScope() 188 auto scopeCtx = LexicalScope<Scope>::Enter(this, node->AsBlockExpression()->Scope()); in ResolveReferenceForScope() 201 auto lexScope = LexicalScope<Scope>::Enter(this, scope); in ResolveReferencesForScopeWithContext() 246 auto enumScopeCtx = LexicalScope<LocalScope>::Enter(this, enumDecl->Scope()); in ResolveEnumDeclaration() 261 auto scopeCtx = LexicalScope<ClassScope>::Enter(this, decl->Scope()->AsClassScope()); in ResolveInterfaceDeclaration() 287 auto typeParamScopeCtx = LexicalScope<LocalScope>::Enter(this, decl->TypeParams()->Scope()); in BuildInterfaceDeclaration() 299 auto scopeCtx = LexicalScope<LocalScope>::Enter(this, methodDef->Function()->TypeParams()->Scope()); in BuildMethodDefinition() 314 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, func->Scope()->ParamScope()); in ResolveMethodDefinition() 339 auto scopeCtx = LexicalScope<LocalScop in BuildClassDefinition() [all...] |
H A D | TypedBinder.cpp | 62 auto scopeCtx = LexicalScope<FunctionParamScope>::Enter(this, scope->AsFunctionParamScope(), false); in BuildSignatureDeclarationBaseParams()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | binder.h | 104 friend class LexicalScope; 248 class LexicalScope { class 251 explicit LexicalScope(Binder *binder, Args &&... args) in LexicalScope() function in panda::es2panda::panda::es2panda::binder::LexicalScope 252 : LexicalScope(binder->Allocator()->New<T>(binder->Allocator(), binder->scope_, std::forward<Args>(args)...), in LexicalScope() 262 ~LexicalScope() in ~LexicalScope() 268 [[nodiscard]] static LexicalScope<T> Enter(Binder *binder, T *scope) in Enter() 270 LexicalScope<T> lexScope(scope, binder); in Enter() 274 DEFAULT_MOVE_SEMANTIC(LexicalScope); 277 NO_COPY_SEMANTIC(LexicalScope); 279 explicit LexicalScope( function in panda::es2panda::panda::es2panda::binder::LexicalScope [all...] |
H A D | binder.cpp | 560 auto scopeCtx = LexicalScope<FunctionParamScope>::Enter(this, scope->AsFunctionParamScope()); in BuildTSSignatureDeclarationBaseParams() 591 auto scopeCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()); in BuildClassDefinition() 650 auto loopCtx = LexicalScope<LoopScope>::Enter(this, loopScope); in BuildForUpdateLoop() 672 auto loopCtx = LexicalScope<LoopScope>::Enter(this, loopScope); in BuildForInOfLoop() 684 auto paramScopeCtx = LexicalScope<CatchParamScope>::Enter(this, catchClauseStmt->Scope()->ParamScope()); in BuildCatchClause() 688 auto scopeCtx = LexicalScope<CatchScope>::Enter(this, catchClauseStmt->Scope()); in BuildCatchClause() 790 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope()); in ResolveReference() 816 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference() 843 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in ResolveReference() 854 auto scopeCtx = LexicalScope<FunctionScop in ResolveReference() [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | scopesInitPhase.cpp | 22 varbinder::LexicalScope<T> LexicalScopeCreateOrEnter(varbinder::VarBinder *varBinder, ir::AstNode *ast) in LexicalScopeCreateOrEnter() 25 return varbinder::LexicalScope<T>::Enter(varBinder, reinterpret_cast<T *>(ast->Scope())); in LexicalScopeCreateOrEnter() 27 return varbinder::LexicalScope<T>(varBinder); in LexicalScopeCreateOrEnter() 93 auto typeParamsCtx = varbinder::LexicalScope<varbinder::LocalScope>(VarBinder()); in HandleFunctionSig() 96 auto lexicalScope = varbinder::LexicalScope<varbinder::FunctionParamScope>(VarBinder()); in HandleFunctionSig() 110 auto paramCtx = varbinder::LexicalScope<varbinder::FunctionParamScope>::Enter(VarBinder(), funcParamScope, false); in HandleFunction() 148 ? varbinder::LexicalScope<varbinder::LoopDeclarationScope>(VarBinder()) in VisitForUpdateStatement() 149 : varbinder::LexicalScope<varbinder::LoopDeclarationScope>::Enter( in VisitForUpdateStatement() 165 ? varbinder::LexicalScope<varbinder::LoopDeclarationScope>(VarBinder()) in VisitForInStatement() 166 : varbinder::LexicalScope<varbinde in VisitForInStatement() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | catchClause.cpp | 90 auto paramScopeCtx = binder::LexicalScope<binder::CatchParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf() 94 auto scopeCtx = binder::LexicalScope<binder::CatchScope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | scriptFunction.cpp | 113 auto paramScopeCtx = binder::LexicalScope<binder::FunctionParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf() 131 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | classProperty.cpp | 94 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | commonjs.cpp | 77 auto *funcParamScope = funcParamContext.LexicalScope().GetScope(); in ParseCommonjs() 82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsModuleDeclaration.cpp | 55 auto scopeCtx = binder::LexicalScope<binder::TSModuleScope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | tsFunctionType.cpp | 71 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | tsConstructorType.cpp | 72 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | tsSignatureDeclaration.cpp | 99 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | expandBrackets.cpp | 61 auto expressionCtx = varbinder::LexicalScope<varbinder::Scope>::Enter(checker->VarBinder(), scope); in ProcessNewArrayInstanceExpression() 93 auto expressionCtx = varbinder::LexicalScope<varbinder::Scope>::Enter(checker->VarBinder(), scope); in ProcessNewMultiDimArrayInstanceExpression()
|
H A D | unionLowering.cpp | 56 auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(varbinder); in GetUnionFieldClass() 81 auto fieldCtx = varbinder::LexicalScope<varbinder::LocalScope>::Enter(varbinder, classScope->InstanceFieldScope()); in CreateUnionFieldClassProperty()
|
H A D | stringConstructorLowering.cpp | 84 auto exprCtx = varbinder::LexicalScope<varbinder::Scope>::Enter(checker->VarBinder(), scope); in ReplaceStringConstructor()
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | blockStatement.cpp | 66 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, in UpdateSelf()
|
H A D | whileStatement.cpp | 73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | doWhileStatement.cpp | 73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | forOfStatement.cpp | 110 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
|
H A D | forInStatement.cpp | 108 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
|
H A D | forUpdateStatement.cpp | 112 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | utilityTypeHandlers.cpp | 245 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), scope); in CreateConstructorForPartialType() 268 varbinder::LexicalScope<varbinder::GlobalScope>::Enter(VarBinder(), classDeclProgram->GlobalScope()); in CreateClassPrototype() 276 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(VarBinder()); in CreateClassPrototype() 410 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), classScope); in CreateNonStaticClassInitializer() 417 const auto funcParamCtx = varbinder::LexicalScope<varbinder::FunctionParamScope>::Enter(VarBinder(), paramScope); in CreateNonStaticClassInitializer()
|