/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | scriptFunction.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 107 void ScriptFunction::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 113 auto paramScopeCtx = binder::LexicalScope<binder::FunctionParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf() 131 auto scopeCtx = binder::LexicalScope<binder in UpdateSelf() [all...] |
H A D | catchClause.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 87 void CatchClause::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 90 auto paramScopeCtx = binder::LexicalScope<binder::CatchParamScope>::Enter(binder, scope_->ParamScope()); in UpdateSelf() 94 auto scopeCtx = binder::LexicalScope<binder in UpdateSelf() [all...] |
H A D | catchClause.h | 30 namespace panda::es2panda::binder { namespace in panda::es2panda::panda::es2panda::panda::es2panda 32 } // namespace panda::es2panda::binder 41 explicit CatchClause(binder::CatchScope *scope, Expression *param, BlockStatement *body) in CatchClause() 66 binder::CatchScope *Scope() const in Scope() 75 void UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) override; 78 binder::CatchScope *scope_;
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsModuleDeclaration.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 50 void TSModuleDeclaration::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 55 auto scopeCtx = binder::LexicalScope<binder::TSModuleScope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | tsEnumDeclaration.h | 20 #include <binder/enumMemberResult.h> 22 namespace panda::es2panda::binder { namespace in panda::es2panda 25 } // namespace panda::es2panda::binder 43 explicit TSEnumDeclaration(binder::TSEnumScope *scope, Identifier *key, ArenaVector<TSEnumMember *> &&members, in TSEnumDeclaration() 55 binder::TSEnumScope *Scope() const in Scope() 85 static binder::EnumMemberResult EvaluateEnumMember(checker::Checker *checker, binder::EnumVariable *enumVar, 93 void UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) override; 96 binder [all...] |
H A D | tsFunctionType.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 69 void TSFunctionType::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 71 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | tsConstructorType.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 70 void TSConstructorType::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 72 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, scope_); in UpdateSelf()
|
H A D | tsEnumDeclaration.cpp | 18 #include <binder/scope.h> 71 binder::EnumMemberResult EvaluateIdentifier(checker::Checker *checker, binder::EnumVariable *enumVar, in EvaluateIdentifier() 81 binder::Variable *enumMember = expr->AsIdentifier()->Variable(); in EvaluateIdentifier() 89 binder::EnumVariable *exprEnumVar = enumMember->AsEnumVariable(); in EvaluateIdentifier() 104 binder::EnumMemberResult EvaluateUnaryExpression(checker::Checker *checker, binder::EnumVariable *enumVar, in EvaluateUnaryExpression() 107 binder::EnumMemberResult value = TSEnumDeclaration::EvaluateEnumMember(checker, enumVar, expr->Argument()); in EvaluateUnaryExpression() 130 binder::EnumMemberResult EvaluateMemberExpression(checker::Checker *checker, in EvaluateMemberExpression() 131 [[maybe_unused]] binder in EvaluateMemberExpression() 407 UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) UpdateSelf() argument [all...] |
H A D | tsTypeParameterDeclaration.h | 21 namespace panda::es2panda::binder { namespace in panda::es2panda 23 } // namespace panda::es2panda::binder 40 explicit TSTypeParameterDeclaration(binder::LocalScope *scope, ArenaVector<TSTypeParameter *> &¶ms, in TSTypeParameterDeclaration() 49 binder::LocalScope *Scope() const in Scope() 68 void UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) override; 71 binder::LocalScope *scope_;
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | enumType.h | 21 namespace panda::es2panda::binder { namespace in panda::es2panda 23 } // namespace panda::es2panda::binder 29 EnumType(binder::Variable *enumLiteralVar, binder::EnumVariable *enumVar) in EnumType() 34 const binder::Variable *EnumLiteralVar() const in EnumLiteralVar() 39 const binder::EnumVariable *EnumVar() const in EnumVar() 51 binder::Variable *enumLiteralVar_; 52 binder::EnumVariable *enumVar_;
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | blockStatement.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 64 void BlockStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 66 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(binder, in UpdateSelf() 67 scope_ != nullptr ? scope_ : binder->GetScope()); in UpdateSelf()
|
H A D | whileStatement.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 69 void WhileStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf() 74 body_ = UpdateChildStatement(cb, binder, body_); in UpdateSelf()
|
H A D | doWhileStatement.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 70 void DoWhileStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 73 auto loopScopeCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, scope_); in UpdateSelf() 74 body_ = UpdateChildStatement(cb, binder, body_); in UpdateSelf()
|
H A D | blockStatement.h | 30 namespace panda::es2panda::binder { namespace in panda::es2panda::panda::es2panda::panda::es2panda 32 } // namespace panda::es2panda::binder 38 explicit BlockStatement(binder::Scope *scope, ArenaVector<Statement *> &&statementList) in BlockStatement() 43 binder::Scope *Scope() const in Scope() 59 void UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) override; 62 binder::Scope *scope_;
|
H A D | loopStatement.h | 21 namespace panda::es2panda::binder { namespace in panda::es2panda 23 } // namespace panda::es2panda::binder 37 binder::LoopScope *Scope() const in Scope() 64 explicit LoopStatement(AstNodeType type, binder::LoopScope *scope) : Statement(type), scope_(scope) {} in LoopStatement() 66 Statement *UpdateChildStatement(const NodeUpdater &cb, const binder::Binder *binder, Statement *statement) const; 68 binder::LoopScope *scope_;
|
H A D | forOfStatement.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 107 void ForOfStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 110 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf() 114 body_ = UpdateChildStatement(cb, binder, body_); in UpdateSelf()
|
H A D | forInStatement.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 105 void ForInStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 108 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf() 112 body_ = UpdateChildStatement(cb, binder, body_); in UpdateSelf()
|
H A D | forUpdateStatement.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 109 void ForUpdateStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() argument 112 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf() 126 body_ = UpdateChildStatement(cb, binder, body_); in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | envScope.h | 19 #include <binder/scope.h> 36 explicit ScopeContext(PandaGen *pg, binder::Scope *newScope); 44 binder::Scope *prevScope_; 71 explicit VariableEnvScope(PandaGen *pg, binder::VariableScope *scope, LabelTarget target) in VariableEnvScope() 81 binder::VariableScope *Scope() const in Scope() 88 binder::VariableScope *scope_ {}; 91 bool InitVariableContext(PandaGen *pg, binder::VariableScope *scope); 99 explicit LoopEnvScope(PandaGen *pg, binder::LoopScope *scope, LabelTarget target) in LoopEnvScope() 104 explicit LoopEnvScope(PandaGen *pg, LabelTarget target, binder::LoopScope *scope) in LoopEnvScope()
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
H A D | checker.h | 19 #include <binder/enumMemberResult.h> 33 namespace panda::es2panda::binder { namespace in panda::es2panda 41 } // namespace panda::es2panda::binder 111 using FunctionParamsResolveResult = std::variant<std::vector<binder::LocalVariable *> &, bool>; 112 using InterfacePropertyMap = std::unordered_map<util::StringView, std::pair<binder::LocalVariable *, InterfaceType *>>; 115 using PropertyMap = std::unordered_map<util::StringView, binder::LocalVariable *>; 120 explicit Checker(ArenaAllocator *allocator, binder::Binder *binder); 130 binder::Binder *Binder() in Binder() 135 binder [all...] |
H A D | checker.cpp | 22 #include <binder/binder.h> 23 #include <binder/scope.h> 24 #include <binder/variable.h> 33 Checker::Checker(ArenaAllocator *allocator, binder::Binder *binder) in Checker() argument 35 binder_(binder), in Checker() 36 rootNode_(binder->TopScope()->Node()->AsBlockStatement()), in Checker() 37 scope_(binder->TopScope()), in Checker()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | thisExpression.cpp | 18 #include <binder/binder.h> 36 binder::ScopeFindResult res = pg->Scope()->Find(binder::Binder::MANDATORY_PARAM_THIS); in Compile() 40 pg->LoadObjByNameViaDebugger(this, binder::Binder::MANDATORY_PARAM_THIS, true); in Compile() 57 void ThisExpression::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf() argument
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
H A D | hoisting.cpp | 18 #include <binder/binder.h> 19 #include <binder/scope.h> 27 static void StoreModuleVarOrLocalVar(PandaGen *pg, binder::ScopeFindResult &result, const binder::Decl *decl) in StoreModuleVarOrLocalVar() 40 static void HoistVar(PandaGen *pg, binder::Variable *var, const binder::VarDecl *decl) in HoistVar() 59 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistVar() 65 static void HoistFunction(PandaGen *pg, binder::Variable *var, const binder [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | helpers.cpp | 30 #include <binder/variable.h> 31 #include <binder/scope.h> 101 binder::ScopeFindResult result = scope_->Find(name); in CheckReferenceExpression() 104 if (result.variable->HasFlag(binder::VariableFlags::ENUM_LITERAL)) { in CheckReferenceExpression() 222 bool Checker::IsVariableUsedInConditionBody(const ir::AstNode *parent, binder::Variable *searchVar) in IsVariableUsedInConditionBody() 227 binder::Variable *resultVar = nullptr; in IsVariableUsedInConditionBody() 229 binder::ScopeFindResult result = scope_->Find(childNode->AsIdentifier()->Name()); in IsVariableUsedInConditionBody() 247 bool Checker::FindVariableInBinaryExpressionChain(const ir::AstNode *parent, binder::Variable *searchVar) in FindVariableInBinaryExpressionChain() 253 binder::ScopeFindResult result = scope_->Find(childNode->AsIdentifier()->Name()); in FindVariableInBinaryExpressionChain() 267 bool Checker::IsVariableUsedInBinaryExpressionChain(const ir::AstNode *parent, binder [all...] |
H A D | function.cpp | 32 #include <binder/variable.h> 33 #include <binder/scope.h> 34 #include <binder/declaration.h> 121 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionIdentifierParameter( in CheckFunctionIdentifierParameter() 125 binder::Variable *paramVar = param->Variable(); in CheckFunctionIdentifierParameter() 133 paramVar->AddFlag(binder::VariableFlags::OPTIONAL); in CheckFunctionIdentifierParameter() 159 binder::LocalVariable *newMember = binder::Scope::CreateVar( in CreateParameterTypeForArrayAssignmentPattern() 160 allocator_, memberIndex, binder in CreateParameterTypeForArrayAssignmentPattern() [all...] |