Home
last modified time | relevance | path

Searched refs:LexicalScope (Results 1 - 25 of 50) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.cpp374 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 Dvarbinder.h165 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 DETSBinder.cpp176 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 DTypedBinder.cpp62 auto scopeCtx = LexicalScope<FunctionParamScope>::Enter(this, scope->AsFunctionParamScope(), false); in BuildSignatureDeclarationBaseParams()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.h104 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 Dbinder.cpp560 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 DscopesInitPhase.cpp22 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 DcatchClause.cpp90 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 DscriptFunction.cpp113 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 DclassProperty.cpp94 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/parser/
H A Dcommonjs.cpp77 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 DtsModuleDeclaration.cpp55 auto scopeCtx = binder::LexicalScope<binder::TSModuleScope>::Enter(binder, scope_); in UpdateSelf()
H A DtsFunctionType.cpp71 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
H A DtsConstructorType.cpp72 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
H A DtsSignatureDeclaration.cpp99 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DexpandBrackets.cpp61 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 DunionLowering.cpp56 auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(varbinder); in GetUnionFieldClass()
81 auto fieldCtx = varbinder::LexicalScope<varbinder::LocalScope>::Enter(varbinder, classScope->InstanceFieldScope()); in CreateUnionFieldClassProperty()
H A DstringConstructorLowering.cpp84 auto exprCtx = varbinder::LexicalScope<varbinder::Scope>::Enter(checker->VarBinder(), scope); in ReplaceStringConstructor()
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DblockStatement.cpp66 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, in UpdateSelf()
H A DwhileStatement.cpp73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf()
H A DdoWhileStatement.cpp73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf()
H A DforOfStatement.cpp110 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
H A DforInStatement.cpp108 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
H A DforUpdateStatement.cpp112 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DutilityTypeHandlers.cpp245 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()

Completed in 14 milliseconds

12