Home
last modified time | relevance | path

Searched refs:LocalVariable (Results 1 – 25 of 104) sorted by relevance

12345

/arkcompiler/ets_frontend/ets2panda/varbinder/
Dvariable.cpp23 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable() function in panda::es2panda::varbinder::LocalVariable
30 LocalVariable::LocalVariable(VariableFlags flags) : Variable(flags) {} in LocalVariable() function in panda::es2panda::varbinder::LocalVariable
37 LocalVariable *LocalVariable::Copy(ArenaAllocator *allocator, Decl *decl) const in Copy()
39 auto *var = allocator->New<LocalVariable>(decl, flags_); in Copy()
44 void LocalVariable::SetLexical(Scope *scope) in SetLexical()
Dscope.cpp211 return scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocalVar()
227 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::ENUM_LITERAL)}) in AddLocal()
231 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::IN… in AddLocal()
236 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::TYPE_PARAMETER)}) in AddLocal()
256 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}).first->s… in AddLocal()
328 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam()
363 …auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR | VariableFlags::LOCAL); in AddParamDecl()
372 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
390 return AddVar<LocalVariable>(allocator, currentVariable, newDecl); in AddBinding()
393 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); 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.cpp37 void LocalVariable::Serialize(const panda::pandasm::debuginfo::LocalVariable &debug, in Serialize()
38 protoPanda::LocalVariable &protoDebug) in Serialize()
48 void LocalVariable::Deserialize(const protoPanda::LocalVariable &protoDebug, in Deserialize()
49 panda::pandasm::debuginfo::LocalVariable &debug) in Deserialize()
/arkcompiler/ets_frontend/es2panda/binder/
Dvariable.cpp24 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable() function in panda::es2panda::binder::LocalVariable
36 LocalVariable *LocalVariable::Copy(ArenaAllocator *allocator, Decl *decl) const in Copy()
38 auto *var = allocator->New<LocalVariable>(decl, flags_); in Copy()
43 void LocalVariable::SetLexical(Scope *scope, util::PatchFix *patchFixHelper) in SetLexical()
Dscope.cpp342 … scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal()
352 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal()
368 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal()
382 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam()
415 auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR); in AddParamDecl()
424 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
440 return AddVar<LocalVariable>(allocator, currentVariable, newDecl); in AddBinding()
443 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
446 return AddClass<LocalVariable>(allocator, currentVariable, newDecl); in AddBinding()
458 … 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()
DobjectDescriptor.h24 class LocalVariable; variable
48 binder::LocalVariable *FindProperty(const util::StringView &name) const;
52 ArenaVector<binder::LocalVariable *> properties;
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()
125 ArenaVector<binder::LocalVariable *> Properties() override in Properties()
127 ArenaVector<binder::LocalVariable *> properties(allocator_->Adapter()); in Properties()
138 void CollectProperties(ArenaVector<binder::LocalVariable *> *collectedPropeties) const;
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/types/ts/
DobjectDescriptor.h24 class LocalVariable; variable
47 varbinder::LocalVariable *FindProperty(const util::StringView &name) const;
52 ArenaVector<varbinder::LocalVariable *> properties;
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()
137 void CollectProperties(ArenaVector<varbinder::LocalVariable *> *collectedProperties) const;
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DvariableDeclaration.test.ts39 LocalVariable
78 expect(v instanceof LocalVariable).to.be.true;
94 expect(v instanceof LocalVariable).to.be.true;
128 expect(v instanceof LocalVariable).to.be.true;
148 expect(i instanceof LocalVariable).to.be.true;
150 expect(j instanceof LocalVariable).to.be.true;
159 expect(i instanceof LocalVariable).to.be.true;
161 expect(j instanceof LocalVariable).to.be.true;
180 expect(i instanceof LocalVariable).to.be.true;
/arkcompiler/ets_frontend/ts2panda/tests/expression/
DthisKeyWord.test.ts26 import { LocalVariable } from "../../src/variable";
48 expect(thisVar instanceof LocalVariable).to.be.true;
64 expect(thisVar instanceof LocalVariable).to.be.true;
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsObjectType.h117 using PropertyMap = ArenaUnorderedMap<util::StringView, varbinder::LocalVariable *>;
119 using PropertyTraverser = std::function<void(const varbinder::LocalVariable *)>;
436 varbinder::LocalVariable *GetOwnProperty(const util::StringView &name) const in GetOwnProperty()
447 void AddProperty(varbinder::LocalVariable *prop) in AddProperty()
458 std::vector<const varbinder::LocalVariable *> ForeignProperties() const;
459 …varbinder::LocalVariable *GetProperty(const util::StringView &name, PropertySearchFlags flags) con…
460 std::vector<varbinder::LocalVariable *> GetAllProperties() const;
462 … varbinder::LocalVariable *CopyProperty(varbinder::LocalVariable *prop, ArenaAllocator *allocator,
464 std::vector<varbinder::LocalVariable *> Methods() const;
465 std::vector<varbinder::LocalVariable *> Fields() const;
[all …]
DetsObjectType.cpp44 varbinder::LocalVariable *ETSObjectType::GetProperty(const util::StringView &name, PropertySearchFl… in GetProperty()
46 varbinder::LocalVariable *res {}; in GetProperty()
106 varbinder::LocalVariable *ETSObjectType::CreateSyntheticVarFromEverySignature(const util::StringVie… in CreateSyntheticVarFromEverySignature()
109 …varbinder::LocalVariable *res = allocator_->New<varbinder::LocalVariable>(varbinder::VariableFlags… in CreateSyntheticVarFromEverySignature()
114 …varbinder::LocalVariable *functionalInterface = CollectSignaturesForSyntheticType(funcType, name, … in CreateSyntheticVarFromEverySignature()
134 varbinder::LocalVariable *ETSObjectType::CollectSignaturesForSyntheticType(ETSFunctionType *funcTyp… in CollectSignaturesForSyntheticType()
138 auto const addSignature = [funcType, flags](varbinder::LocalVariable *found) -> void { in CollectSignaturesForSyntheticType()
185 std::vector<varbinder::LocalVariable *> ETSObjectType::GetAllProperties() const in GetAllProperties()
187 std::vector<varbinder::LocalVariable *> allProperties; in GetAllProperties()
221 std::vector<varbinder::LocalVariable *> ETSObjectType::Methods() const in Methods()
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
Demitter.h34 struct LocalVariable;
40 class LocalVariable; variable
68 virtual void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug,
69 varbinder::LocalVariable *variable) const = 0;
DJSemitter.h39 void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug,
40 varbinder::LocalVariable *variable) const override;
/arkcompiler/ets_frontend/ets2panda/checker/
DTSchecker.h37 class LocalVariable; variable
325 std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionParameter(
327 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionIdentifierPa…
329 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionAssignmentPa…
331 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionRestParamete…
333 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionArrayPattern…
335 …std::tuple<varbinder::LocalVariable *, varbinder::LocalVariable *, bool> CheckFunctionObjectPatter…
/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/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/es2panda/typescript/core/
Dfunction.cpp121 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionIdentifier… in CheckFunctionIdentifierParameter()
158 binder::LocalVariable *newMember = binder::Scope::CreateVar( in CreateParameterTypeForArrayAssignmentPattern()
182 …binder::LocalVariable *foundVar = newObject->GetProperty(prop->Key()->AsIdentifier()->Name(), true… in CreateParameterTypeForObjectAssignmentPattern()
195 binder::LocalVariable *newProp = in CreateParameterTypeForObjectAssignmentPattern()
206 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionAssignment… in CheckFunctionAssignmentPatternParameter()
249 binder::LocalVariable *patternVar = in CheckFunctionAssignmentPatternParameter()
256 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionRestParame… in CheckFunctionRestParameter()
321 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionArrayPatte… in CheckFunctionArrayPatternParameter()
327 binder::LocalVariable *patternVar = in CheckFunctionArrayPatternParameter()
343 std::tuple<binder::LocalVariable *, binder::LocalVariable *, bool> Checker::CheckFunctionObjectPatt… in CheckFunctionObjectPatternParameter()
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DmemberExpression.h98 [[nodiscard]] varbinder::LocalVariable *PropVar() noexcept in DEFINE_BITOPS()
103 [[nodiscard]] const varbinder::LocalVariable *PropVar() const noexcept in DEFINE_BITOPS()
138 void SetPropVar(varbinder::LocalVariable *propVar) noexcept in DEFINE_BITOPS()
207 …std::pair<checker::Type *, varbinder::LocalVariable *> ResolveEnumMember(checker::ETSChecker *chec… in DEFINE_BITOPS()
209 …std::pair<checker::Type *, varbinder::LocalVariable *> ResolveObjectMember(checker::ETSChecker *ch… in DEFINE_BITOPS()
227 varbinder::LocalVariable *propVar_ {}; in DEFINE_BITOPS()
/arkcompiler/ets_frontend/ts2panda/tests/
Dscope.test.ts27 LocalVariable,
55 expect(variable instanceof LocalVariable).to.be.true;
65 expect(variable instanceof LocalVariable).to.be.true;
93 expect(variable instanceof LocalVariable).to.be.true;
103 expect(variable instanceof LocalVariable).to.be.true;
113 expect(variable instanceof LocalVariable).to.be.true;
144 expect(variable instanceof LocalVariable).to.be.true;
159 expect(variable instanceof LocalVariable).to.be.true;
172 expect(variable instanceof LocalVariable).to.be.true;
/arkcompiler/ets_frontend/ts2panda/src/
Dscope.ts21 LocalVariable,
304 protected parameters: LocalVariable[] = [];
342 if (!(v instanceof LocalVariable)) {
370 getParameters(): LocalVariable[] {
412 v = new LocalVariable(declKind, name, status);
453 v = new LocalVariable(declKind, name);
455 v = new LocalVariable(declKind, name, status);
504 v = new LocalVariable(declKind, name);
507 v = new LocalVariable(declKind, name, status);
537 v = new LocalVariable(declKind, name, status);

12345