Home
last modified time | relevance | path

Searched full:localvariable (Results 1 – 25 of 109) sorted by relevance

12345

/arkcompiler/ets_frontend/ets2panda/varbinder/
Dvariable.cpp25 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()
Dscope.cpp270 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/
DassemblyDebugProto.h29 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);
DassemblyDebugProto.cpp35 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()
DassemblyFunctionProto.cpp67 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/
DetsObjectType.h29 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 …]
DetsObjectType.cpp44 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/
DinterfaceType.h67 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;
DobjectDescriptor.h24 class LocalVariable; variable
47 varbinder::LocalVariable *FindProperty(const util::StringView &name) const;
52 ArenaVector<varbinder::LocalVariable *> properties;
DinterfaceType.cpp46 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/
Dvariable.cpp22 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()
Dscope.cpp420 … 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/
Dsignature.h24 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()
DinterfaceType.h68 …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;
DobjectDescriptor.h24 class LocalVariable; variable
48 binder::LocalVariable *FindProperty(const util::StringView &name) const;
52 ArenaVector<binder::LocalVariable *> properties;
DobjectType.h28 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/
DTSchecker.h37 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/
Dchecker.h38 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/
Demitter.h35 struct LocalVariable;
41 class LocalVariable; variable
75 virtual void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug,
76 varbinder::LocalVariable *variable) const = 0;
DJSemitter.h39 void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug,
40 varbinder::LocalVariable *variable) const override;
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
DvariableHasScope.h30 …static std::optional<varbinder::LocalVariable *> GetLocalScopeVariable(ArenaAllocator &allocator, …
32 bool ScopeEncloseVariable(CheckContext &ctx, const varbinder::LocalVariable *var);
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp105 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/
Dfunction.cpp119 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/
Dsignature.h61 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/
DmemberExpression.h111 [[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…

12345