/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | envScope.cpp | 23 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 …]
|
D | regScope.cpp | 43 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()
|
D | envScope.h | 72 … : 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/ |
D | blockStatement.cpp | 40 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()
|
D | forInStatement.cpp | 45 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()
|
D | forOfStatement.cpp | 45 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()
|
D | loopStatement.h | 39 return scope_; in Scope() 64 …explicit LoopStatement(AstNodeType type, binder::LoopScope *scope) : Statement(type), scope_(scope… in LoopStatement() 68 binder::LoopScope *scope_; variable
|
D | blockStatement.h | 39 … : Statement(AstNodeType::BLOCK_STATEMENT), scope_(scope), statements_(std::move(statementList)) in BlockStatement() 45 return scope_; in Scope() 62 binder::Scope *scope_;
|
D | switchStatement.h | 43 …: Statement(AstNodeType::SWITCH_STATEMENT), scope_(scope), discriminant_(discriminant), cases_(std… in SwitchStatement() 69 return scope_; in Scope() 79 binder::LocalScope *scope_;
|
D | whileStatement.cpp | 49 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()
|
D | doWhileStatement.cpp | 47 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/ |
D | enumLiteralType.h | 32 : 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/ |
D | binder.h | 87 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 …]
|
D | binder.cpp | 69 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/ |
D | catchClause.cpp | 49 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()
|
D | catchClause.h | 42 : Statement(AstNodeType::CATCH_CLAUSE), scope_(scope), param_(param), body_(body) in CatchClause() 68 return scope_; in Scope() 78 binder::CatchScope *scope_;
|
D | scriptFunction.h | 46 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/ |
D | tsTypeParameterDeclaration.h | 43 scope_(scope), in TSTypeParameterDeclaration() 51 return scope_; in Scope() 71 binder::LocalScope *scope_;
|
D | tsModuleDeclaration.h | 40 scope_(scope), in Statement() 51 return scope_; in Scope() 91 binder::TSModuleScope *scope_;
|
D | tsFunctionType.h | 43 scope_(scope), in TSFunctionType() 52 return scope_; in Scope() 78 binder::Scope *scope_;
|
D | tsSignatureDeclaration.h | 46 scope_(scope), in TSSignatureDeclaration() 55 return scope_; in Scope() 85 binder::Scope *scope_;
|
D | tsConstructorType.h | 43 scope_(scope), in TSConstructorType() 53 return scope_; in Scope() 84 binder::Scope *scope_;
|
D | tsMethodSignature.h | 44 scope_(scope), in TSMethodSignature() 56 return scope_; in Scope() 101 binder::Scope *scope_;
|
D | tsInterfaceDeclaration.h | 47 scope_(scope), in TSInterfaceDeclaration() 57 return scope_; in Scope() 88 binder::LocalScope *scope_;
|
D | tsEnumDeclaration.h | 46 scope_(scope), in TSEnumDeclaration() 57 return scope_; in Scope() 96 binder::TSEnumScope *scope_;
|