| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | variable.cpp | 25 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable() function in ark::es2panda::varbinder::LocalVariable 32 LocalVariable::LocalVariable(VariableFlags flags) : Variable(flags) {} in LocalVariable() function in ark::es2panda::varbinder::LocalVariable 39 LocalVariable *LocalVariable::Copy(ArenaAllocator *allocator, Decl *decl) const in Copy() 41 auto *var = allocator->New<LocalVariable>(decl, flags_); in Copy() 46 void LocalVariable::SetLexical(Scope *scope) in SetLexical()
|
| D | scope.cpp | 270 return scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocalVar() 286 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::ENUM_LITE… in AddLocal() 292 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::IN… in AddLocal() 297 … bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::CLASS)}) in AddLocal() 304 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::TYPE_PARAMETER)}) in AddLocal() 324 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}).first->s… in AddLocal() 396 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam() 432 …auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR | VariableFlags::LOCAL); in AddParamDecl() 441 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName() 459 auto annoVar = allocator->New<LocalVariable>(newDecl, VariableFlags::PROPERTY); in AddBinding() [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyDebugProto.h | 29 class LocalVariable { 31 static void Serialize(const panda::pandasm::debuginfo::LocalVariable &debug, 32 protoPanda::LocalVariable &protoDebug); 33 static void Deserialize(const protoPanda::LocalVariable &protoDebug, 34 panda::pandasm::debuginfo::LocalVariable &debug);
|
| D | assemblyDebugProto.cpp | 35 void LocalVariable::Serialize(const panda::pandasm::debuginfo::LocalVariable &debug, in Serialize() 36 protoPanda::LocalVariable &protoDebug) in Serialize() 46 void LocalVariable::Deserialize(const protoPanda::LocalVariable &protoDebug, in Deserialize() 47 panda::pandasm::debuginfo::LocalVariable &debug) in Deserialize()
|
| D | assemblyFunctionProto.cpp | 67 LocalVariable::Serialize(debug, *protoDebug); in Serialize() 137 panda::pandasm::debuginfo::LocalVariable localVariable; in DeserializeProtoLocalVariable() local 138 LocalVariable::Deserialize(protoLocalVariable, localVariable); in DeserializeProtoLocalVariable() 139 function.local_variable_debug.emplace_back(std::move(localVariable)); in DeserializeProtoLocalVariable()
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsObjectType.h | 29 using PropertyProcesser = std::function<varbinder::LocalVariable *(varbinder::LocalVariable *, Type… 35 using PropertyMap = ArenaUnorderedMap<util::StringView, varbinder::LocalVariable *>; 37 using PropertyTraverser = std::function<void(const varbinder::LocalVariable *)>; 338 varbinder::LocalVariable *GetOwnProperty(const util::StringView &name) const in GetOwnProperty() 349 void AddProperty(varbinder::LocalVariable *prop) const in AddProperty() 356 void AddProperty(varbinder::LocalVariable *prop, util::StringView localName) const in AddProperty() 369 void RemoveProperty(varbinder::LocalVariable *prop) in RemoveProperty() 385 std::vector<const varbinder::LocalVariable *> ForeignProperties() const; 386 …varbinder::LocalVariable *GetProperty(const util::StringView &name, PropertySearchFlags flags) con… 387 std::vector<varbinder::LocalVariable *> GetAllProperties() const; [all …]
|
| D | etsObjectType.cpp | 44 varbinder::LocalVariable *ETSObjectType::SearchFieldsDecls(const util::StringView &name, in SearchFieldsDecls() 47 varbinder::LocalVariable *res {}; in SearchFieldsDecls() 66 varbinder::LocalVariable *ETSObjectType::GetProperty(const util::StringView &name, PropertySearchFl… in GetProperty() 68 varbinder::LocalVariable *res = SearchFieldsDecls(name, flags); in GetProperty() 154 varbinder::LocalVariable *ETSObjectType::CreateSyntheticVarFromEverySignature(const util::StringVie… in CreateSyntheticVarFromEverySignature() 157 …varbinder::LocalVariable *res = allocator_->New<varbinder::LocalVariable>(varbinder::VariableFlags… in CreateSyntheticVarFromEverySignature() 161 …varbinder::LocalVariable *functionalInterface = CollectSignaturesForSyntheticType(funcType, name, … in CreateSyntheticVarFromEverySignature() 181 varbinder::LocalVariable *ETSObjectType::CollectSignaturesForSyntheticType(ETSFunctionType *funcTyp… in CollectSignaturesForSyntheticType() 185 auto const addSignature = [funcType, flags](varbinder::LocalVariable *found) -> void { in CollectSignaturesForSyntheticType() 218 std::vector<varbinder::LocalVariable *> ETSObjectType::GetAllProperties() const in GetAllProperties() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
| D | interfaceType.h | 67 varbinder::LocalVariable *GetProperty(const util::StringView &name, in GetProperty() 70 varbinder::LocalVariable *resultProp = ObjectType::GetProperty(name, false); in GetProperty() 124 ArenaVector<varbinder::LocalVariable *> Properties() override in Properties() 126 ArenaVector<varbinder::LocalVariable *> properties(allocator_->Adapter()); in Properties() 134 …bool CheckVarType(TypeRelation *relation, const ArenaVector<varbinder::LocalVariable *> &targetPro… 135 const ArenaVector<varbinder::LocalVariable *> &sourceProperties); 140 void CollectProperties(ArenaVector<varbinder::LocalVariable *> *collectedProperties) const;
|
| D | objectDescriptor.h | 24 class LocalVariable; variable 47 varbinder::LocalVariable *FindProperty(const util::StringView &name) const; 52 ArenaVector<varbinder::LocalVariable *> properties;
|
| D | interfaceType.cpp | 46 const ArenaVector<varbinder::LocalVariable *> &targetProperties, in CheckVarType() 47 const ArenaVector<varbinder::LocalVariable *> &sourceProperties) in CheckVarType() 51 [targetProp, relation](varbinder::LocalVariable *sourceProp) { in CheckVarType() 76 const ArenaVector<varbinder::LocalVariable *> &targetProperties = Properties(); in Identical() 77 const ArenaVector<varbinder::LocalVariable *> &sourceProperties = otherInterface->Properties(); in Identical() 176 void InterfaceType::CollectProperties(ArenaVector<varbinder::LocalVariable *> *collectedProperties)… in CollectProperties()
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | variable.cpp | 22 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable() function in panda::es2panda::binder::LocalVariable 34 LocalVariable *LocalVariable::Copy(ArenaAllocator *allocator, Decl *decl) const in Copy() 36 auto *var = allocator->New<LocalVariable>(decl, flags_); in Copy() 42 void LocalVariable::SetLexical(Scope *scope, util::PatchFix *patchFixHelper) in SetLexical()
|
| D | scope.cpp | 420 … scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal() 430 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal() 446 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal() 461 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam() 496 auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR); in AddParamDecl() 505 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName() 567 return AddVar<LocalVariable>(allocator, currentVariable, newDecl); in AddBinding() 570 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding() 573 return AddClass<LocalVariable>(allocator, currentVariable, newDecl); in AddBinding() 585 … return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE); in AddBinding() [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | signature.h | 24 class LocalVariable; variable 51 binder::LocalVariable *restVar {}; 52 ArenaVector<binder::LocalVariable *> params; 70 const ArenaVector<binder::LocalVariable *> &Params() const in Params() 110 const binder::LocalVariable *RestVar() const in RestVar()
|
| D | interfaceType.h | 68 …binder::LocalVariable *GetProperty(const util::StringView &name, [[maybe_unused]] bool searchInBas… in GetProperty() 70 binder::LocalVariable *resultProp = ObjectType::GetProperty(name, false); in GetProperty() 124 ArenaVector<binder::LocalVariable *> Properties() override in Properties() 126 ArenaVector<binder::LocalVariable *> properties(allocator_->Adapter()); in Properties() 137 void CollectProperties(ArenaVector<binder::LocalVariable *> *collectedPropeties) const;
|
| D | objectDescriptor.h | 24 class LocalVariable; variable 48 binder::LocalVariable *FindProperty(const util::StringView &name) const; 52 ArenaVector<binder::LocalVariable *> properties;
|
| D | objectType.h | 28 class LocalVariable; variable 127 virtual ArenaVector<binder::LocalVariable *> Properties() in DEFINE_BITOPS() 142 void AddProperty(binder::LocalVariable *prop) in DEFINE_BITOPS() 147 …virtual binder::LocalVariable *GetProperty(const util::StringView &name, [[maybe_unused]] bool sea… in DEFINE_BITOPS()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | TSchecker.h | 37 class LocalVariable; variable 345 std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionParameter( 347 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionIdentifierPa… 349 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionAssignmentPa… 351 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionRestParamete… 353 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionArrayPattern… 355 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionObjectPatter…
|
| /arkcompiler/ets_frontend/es2panda/typescript/ |
| D | checker.h | 38 class LocalVariable; variable 111 using FunctionParamsResolveResult = std::variant<std::vector<binder::LocalVariable *> &, bool>; 112 using InterfacePropertyMap = std::unordered_map<util::StringView, std::pair<binder::LocalVariable *… 115 using PropertyMap = std::unordered_map<util::StringView, binder::LocalVariable *>; 415 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> CheckFunctionParameter( 417 …std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> CheckFunctionIdentifierParamete… 419 …std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> CheckFunctionAssignmentPatternP… 421 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> CheckFunctionRestParameter( 423 …std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> CheckFunctionArrayPatternParame… 425 …std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> CheckFunctionObjectPatternParam…
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | emitter.h | 35 struct LocalVariable; 41 class LocalVariable; variable 75 virtual void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug, 76 varbinder::LocalVariable *variable) const = 0;
|
| D | JSemitter.h | 39 void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug, 40 varbinder::LocalVariable *variable) const override;
|
| /arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
| D | variableHasScope.h | 30 …static std::optional<varbinder::LocalVariable *> GetLocalScopeVariable(ArenaAllocator &allocator, … 32 bool ScopeEncloseVariable(CheckContext &ctx, const varbinder::LocalVariable *var);
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | function.cpp | 105 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionIdentifier… in CheckFunctionIdentifierParameter() 143 binder::LocalVariable *newMember = binder::Scope::CreateVar( in CreateParameterTypeForArrayAssignmentPattern() 168 …binder::LocalVariable *foundVar = newObject->GetProperty(prop->Key()->AsIdentifier()->Name(), true… in CreateParameterTypeForObjectAssignmentPattern() 181 binder::LocalVariable *newProp = in CreateParameterTypeForObjectAssignmentPattern() 193 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionAssignment… in CheckFunctionAssignmentPatternParameter() 236 binder::LocalVariable *patternVar = in CheckFunctionAssignmentPatternParameter() 243 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionRestParame… in CheckFunctionRestParameter() 309 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionArrayPatte… in CheckFunctionArrayPatternParameter() 315 binder::LocalVariable *patternVar = in CheckFunctionArrayPatternParameter() 331 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionObjectPatt… in CheckFunctionObjectPatternParameter() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ts/ |
| D | function.cpp | 119 std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> TSChecker::CheckFunctionId… in CheckFunctionIdentifierParameter() 157 varbinder::LocalVariable *newMember = varbinder::Scope::CreateVar( in CreateParameterTypeForArrayAssignmentPattern() 180 …varbinder::LocalVariable *foundVar = newObject->GetProperty(prop->Key()->AsIdentifier()->Name(), t… in CreateParameterTypeForObjectAssignmentPattern() 193 varbinder::LocalVariable *newProp = varbinder::Scope::CreateVar( in CreateParameterTypeForObjectAssignmentPattern() 204 using ReturnedVariable = std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool>; 247 varbinder::LocalVariable *patternVar = in CheckFunctionAssignmentPatternParameter() 254 std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> TSChecker::CheckFunctionRe… in CheckFunctionRestParameter() 304 std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> TSChecker::CheckFunctionAr… in CheckFunctionArrayPatternParameter() 310 varbinder::LocalVariable *patternVar = in CheckFunctionArrayPatternParameter() 326 std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> TSChecker::CheckFunctionOb… in CheckFunctionObjectPatternParameter() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ |
| D | signature.h | 61 varbinder::LocalVariable *restVar {}; 62 ArenaVector<varbinder::LocalVariable *> params; 144 const ArenaVector<varbinder::LocalVariable *> &Params() const 149 ArenaVector<varbinder::LocalVariable *> &Params() 219 const varbinder::LocalVariable *RestVar() const
|
| /arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
| D | memberExpression.h | 111 [[nodiscard]] varbinder::LocalVariable *PropVar() noexcept 119 [[nodiscard]] const varbinder::LocalVariable *PropVar() const noexcept 157 void SetPropVar(varbinder::LocalVariable *propVar) noexcept 216 …std::pair<checker::Type *, varbinder::LocalVariable *> ResolveEnumMember(checker::ETSChecker *chec… 218 …std::pair<checker::Type *, varbinder::LocalVariable *> ResolveObjectMember(checker::ETSChecker *ch…
|