Home
last modified time | relevance | path

Searched refs:scope_ (Results 1 – 25 of 50) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/compiler/core/
DenvScope.cpp23 ScopeContext::ScopeContext(PandaGen *pg, binder::Scope *newScope) : pg_(pg), prevScope_(pg_->scope_) in ScopeContext()
25 pg_->scope_ = newScope; in ScopeContext()
30 pg_->scope_ = prevScope_; in ~ScopeContext()
57 pg_->NewLexicalEnv(scope_->Node(), scope->LexicalSlots(), scope_); in InitLoopContext()
66 auto num = scope_->LexicalSlots(); in CopyPerIterationCtx()
72 pg_->LoadLexicalVar(scope_->Node(), 0, i); in CopyPerIterationCtx()
73 pg_->StoreAccumulator(scope_->Node(), lexical); in CopyPerIterationCtx()
76 pg_->PopLexEnv(scope_->Node()); in CopyPerIterationCtx()
77 pg_->NewLexicalEnv(scope_->Node(), num, scope_); in CopyPerIterationCtx()
80 pg_->StoreLexicalVar(scope_->Node(), 0, i, lexicals[i]); in CopyPerIterationCtx()
[all …]
DregScope.cpp43 pg_->scope_->SetScopeEnd(pg_->insns_.back()); in DebuggerCloseScope()
52 prevScope_ = pg_->scope_; in LocalRegScope()
53 pg_->scope_ = scope; in LocalRegScope()
63 pg_->scope_->SetScopeStart(pg_->insns_.back()); in LocalRegScope()
64 pg_->debugInfo_.variableDebugInfo.push_back(pg_->scope_); in LocalRegScope()
78 pg_->scope_ = prevScope_; in ~LocalRegScope()
DenvScope.h72 … : scope_(NeedEnv(scope) ? scope : nullptr), regScope_(pg, scope), lexEnvCtx_(this, pg, target) in LoopEnvScope()
78 : scope_(NeedEnv(scope) ? scope : nullptr), regScope_(pg), lexEnvCtx_(this, pg, target) in LoopEnvScope()
86 return scope_; in Scope()
91 return scope_ != nullptr; in HasEnv()
106 binder::VariableScope *scope_ {};
/arkcompiler/ets_frontend/es2panda/ir/statements/
DblockStatement.cpp40 if (scope_ != nullptr) { in Compile()
41 compiler::LocalRegScope lrs(pg, scope_); in Compile()
55 auto scopeCtx = checker::ScopeContext(checker, scope_ != nullptr ? scope_ : checker->Scope()); in Check()
67 scope_ != nullptr ? scope_ : binder->GetScope()); in UpdateSelf()
DforInStatement.cpp45 if (scope_->NeedLexEnv()) { in Compile()
46 pg->NewLexEnv(this, scope_->LexicalSlots()); in Compile()
49 compiler::LocalRegScope loopRegScope(pg, scope_); in Compile()
65 if (scope_->NeedLexEnv()) { in Compile()
77 if (scope_->NeedLexEnv()) { in Compile()
92 compiler::LoopEnvScope envScope(pg, scope_, labelTarget); in Compile()
DforOfStatement.cpp45 compiler::LocalRegScope regScope(pg, scope_); in Compile()
47 if (scope_->NeedLexEnv()) { in Compile()
48 pg->NewLexEnv(this, scope_->LexicalSlots()); in Compile()
62 if (scope_->NeedLexEnv()) { in Compile()
70 if (scope_->NeedLexEnv()) { in Compile()
91 compiler::LoopEnvScope envScope(pg, scope_, {}); in Compile()
DloopStatement.h39 return scope_; in Scope()
64 …explicit LoopStatement(AstNodeType type, binder::LoopScope *scope) : Statement(type), scope_(scope… in LoopStatement()
68 binder::LoopScope *scope_; variable
DblockStatement.h39 … : Statement(AstNodeType::BLOCK_STATEMENT), scope_(scope), statements_(std::move(statementList)) in BlockStatement()
45 return scope_; in Scope()
62 binder::Scope *scope_;
DswitchStatement.h43 …: Statement(AstNodeType::SWITCH_STATEMENT), scope_(scope), discriminant_(discriminant), cases_(std… in SwitchStatement()
69 return scope_; in Scope()
79 binder::LocalScope *scope_;
DwhileStatement.cpp49 compiler::LoopEnvScope envScope(pg, labelTarget, scope_); in Compile()
59 checker::ScopeContext scopeCtx(checker, scope_); in Check()
73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf()
DdoWhileStatement.cpp47 compiler::LoopEnvScope envScope(pg, labelTarget, scope_); in Compile()
60 checker::ScopeContext scopeCtx(checker, scope_); in Check()
72 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DenumLiteralType.h32 : Type(TypeFlag::ENUM_LITERAL), name_(name), scope_(scope), kind_(kind) in EnumLiteralType()
38 return scope_; in Scope()
43 return scope_; in Scope()
60 binder::Scope *scope_; variable
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.h87 return scope_; in GetScope()
223 Scope *scope_ {};
241 …: LexicalScope(binder->Allocator()->New<T>(binder->Allocator(), binder->scope_, std::forward<Args>… in LexicalScope()
248 return scope_; in GetScope()
254 binder_->scope_ = prevScope_; in ~LexicalScope()
268 …LexicalScope(T *scope, Binder *binder) : binder_(binder), scope_(scope), prevScope_(binder->scope_) in LexicalScope()
270 binder_->scope_ = scope_; in LexicalScope()
274 T *scope_ {};
284 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl()
299 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl()
[all …]
Dbinder.cpp69 scope_ = topScope_; in InitTopScope()
74 ASSERT(scope_->IsFunctionParamScope() || scope_->IsCatchParamScope()); in AddParamDecl()
75 auto [decl, node] = static_cast<ParamScope *>(scope_)->AddParamDecl(Allocator(), param); in AddParamDecl()
179 ASSERT(scope_ == topScope_); in IdentifierAnalysis()
203 if (scope_->IsTSModuleScope()) { in ValidateExportDecl()
204 auto currentScope = scope_; in ValidateExportDecl()
218 ASSERT(topScope_ == scope_); in ValidateExportDecl()
219 if (scope_->FindLocal(localName) == nullptr) { in ValidateExportDecl()
222 if (scope_->InLocalTSBindings(localName) || in ValidateExportDecl()
223 scope_->FindLocal(localName, ResolveBindingOptions::INTERFACES)) { in ValidateExportDecl()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/base/
DcatchClause.cpp49 compiler::LocalRegScope lrs(pg, scope_->ParamScope()); in Compile()
56 ASSERT(scope_ == body_->Scope()); in Compile()
90 …auto paramScopeCtx = binder::LexicalScope<binder::CatchParamScope>::Enter(binder, scope_->ParamSco… in UpdateSelf()
94 auto scopeCtx = binder::LexicalScope<binder::CatchScope>::Enter(binder, scope_); in UpdateSelf()
DcatchClause.h42 : Statement(AstNodeType::CATCH_CLAUSE), scope_(scope), param_(param), body_(body) in CatchClause()
68 return scope_; in Scope()
78 binder::CatchScope *scope_;
DscriptFunction.h46 scope_(scope), in ScriptFunction()
62 scope_->ParamScope()->RemoveThisParam(THIS_PARAM); in ScriptFunction()
63 scope_->Bindings().erase(THIS_PARAM); in ScriptFunction()
188 return scope_; in Scope()
216 binder::FunctionScope *scope_; variable
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsTypeParameterDeclaration.h43 scope_(scope), in TSTypeParameterDeclaration()
51 return scope_; in Scope()
71 binder::LocalScope *scope_;
DtsModuleDeclaration.h40 scope_(scope), in Statement()
51 return scope_; in Scope()
91 binder::TSModuleScope *scope_;
DtsFunctionType.h43 scope_(scope), in TSFunctionType()
52 return scope_; in Scope()
78 binder::Scope *scope_;
DtsSignatureDeclaration.h46 scope_(scope), in TSSignatureDeclaration()
55 return scope_; in Scope()
85 binder::Scope *scope_;
DtsConstructorType.h43 scope_(scope), in TSConstructorType()
53 return scope_; in Scope()
84 binder::Scope *scope_;
DtsMethodSignature.h44 scope_(scope), in TSMethodSignature()
56 return scope_; in Scope()
101 binder::Scope *scope_;
DtsInterfaceDeclaration.h47 scope_(scope), in TSInterfaceDeclaration()
57 return scope_; in Scope()
88 binder::LocalScope *scope_;
DtsEnumDeclaration.h46 scope_(scope), in TSEnumDeclaration()
57 return scope_; in Scope()
96 binder::TSEnumScope *scope_;

12