/arkcompiler/ets_frontend/es2panda/binder/ |
D | variable.h | 38 class Variable; variable 40 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>; 46 class Variable { in VARIABLE_TYPES() 48 virtual ~Variable() = default; in VARIABLE_TYPES() 49 NO_COPY_SEMANTIC(Variable); in VARIABLE_TYPES() 50 NO_MOVE_SEMANTIC(Variable); in VARIABLE_TYPES() 122 explicit Variable(Decl *decl, VariableFlags flags) : decl_(decl), flags_(flags) {} in VARIABLE_TYPES() 129 class LocalVariable : public Variable { 169 class GlobalVariable : public Variable { 171 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable() [all …]
|
D | scope.h | 41 class Variable; variable 43 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>; 50 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable() 61 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable() 103 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable() 112 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable() 124 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable() 130 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable() 143 …ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) : ScopeFindResult(n, s, l, … in ScopeFindResult() 144 …ScopeFindResult(Scope *s, uint32_t l, uint32_t ll, Variable *v) : scope(s), level(l), lexLevel(ll)… in ScopeFindResult() [all …]
|
D | scope.cpp | 68 Variable *Scope::FindLocal(const util::StringView &name, ResolveBindingOptions options) const in FindLocal() 115 Variable *v = iter->FindLocal(name, options); in Find() 192 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() 199 newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); }); in AddLocal() 241 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, Vari… in AddParam() 296 … [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl, in AddBinding() 302 bool FunctionScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding() 333 bool TSEnumScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding() 340 bool GlobalScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding() 397 bool ModuleScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | new_object_stub_builder.h | 45 void NewLexicalEnv(Variable *result, Label *exit, GateRef numSlots, GateRef parent); 46 void NewJSObject(Variable *result, Label *exit, GateRef hclass); 51 …void NewArgumentsList(Variable *result, Label *exit, GateRef sp, GateRef startIdx, GateRef numArgs… 52 void NewArgumentsObj(Variable *result, Label *exit, GateRef argumentsList, GateRef numArgs); 53 void AllocLineStringObject(Variable *result, Label *exit, GateRef length, bool compressed); 54 void HeapAlloc(Variable *result, Label *exit, RegionSpaceFlag spaceType); 55 …void NewJSArrayLiteral(Variable *result, Label *exit, RegionSpaceFlag spaceType, GateRef obj, Gate… 62 void NewTaggedArrayChecked(Variable *result, GateRef len, Label *exit); 66 void AllocateInYoung(Variable *result, Label *exit);
|
D | ic_stub_builder.h | 47 void LoadICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success, 49 void StoreICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 50 void LoadICByValue(Variable* result, Label* tryFastPath, Label *slowPath, Label *success, 52 void StoreICByValue(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 53 … void TryLoadGlobalICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 54 …void TryStoreGlobalICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *success); 56 void NamedICAccessor(Variable* cachedHandler, Label *tryICHandler); 57 void ValuedICAccessor(Variable* cachedHandler, Label *tryICHandler, Label* tryElementIC);
|
D | ic_stub_builder.cpp | 19 void ICStubBuilder::NamedICAccessor(Variable* cachedHandler, Label *tryICHandler) in NamedICAccessor() 57 void ICStubBuilder::ValuedICAccessor(Variable* cachedHandler, Label *tryICHandler, Label* tryElemen… in ValuedICAccessor() 100 … Variable *result, Label *tryFastPath, Label *slowPath, Label *success, ProfileOperation callback) in LoadICByName() 118 void ICStubBuilder::StoreICByName(Variable* result, Label* tryFastPath, Label *slowPath, Label *suc… in StoreICByName() 137 … Variable *result, Label *tryFastPath, Label *slowPath, Label *success, ProfileOperation callback) in LoadICByValue() 162 void ICStubBuilder::StoreICByValue(Variable* result, Label* tryFastPath, Label *slowPath, Label *su… in StoreICByValue() 187 void ICStubBuilder::TryLoadGlobalICByName(Variable* result, Label* tryFastPath, Label *slowPath, La… in TryLoadGlobalICByName() 208 void ICStubBuilder::TryStoreGlobalICByName(Variable* result, Label* tryFastPath, Label *slowPath, L… in TryStoreGlobalICByName()
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | type.h | 28 class Variable; variable 100 void SetVariable(binder::Variable *variable) in TYPE_MAPPING() 105 binder::Variable *Variable() in TYPE_MAPPING() 110 const binder::Variable *Variable() const in TYPE_MAPPING() 128 binder::Variable *variable_; // Variable associated with the type if any in TYPE_MAPPING()
|
D | enumType.h | 29 EnumType(binder::Variable *enumLiteralVar, binder::EnumVariable *enumVar) in EnumType() 34 const binder::Variable *EnumLiteralVar() const in EnumLiteralVar() 51 binder::Variable *enumLiteralVar_;
|
D | interfaceType.h | 48 void SetMergedTypeParams(std::pair<std::vector<binder::Variable *>, size_t> &&mergedTypeParams) in SetMergedTypeParams() argument 53 const std::pair<std::vector<binder::Variable *>, size_t> &GetMergedTypeParams() const in GetMergedTypeParams() 145 std::pair<std::vector<binder::Variable *>, size_t> mergedTypeParams_ {};
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | object.cpp | 182 ASSERT(type->Variable() && type->Variable()->Declaration()->Node()->IsTSTypeLiteral()); in ResolveObjectTypeMembers() 183 … const ir::TSTypeLiteral *typeLiteral = type->Variable()->Declaration()->Node()->AsTSTypeLiteral(); in ResolveObjectTypeMembers() 203 binder::Variable *prop = member->AsTSPropertySignature()->Variable(); in ResolvePropertiesOfObjectType() 214 binder::Variable *method = member->AsTSMethodSignature()->Variable(); in ResolvePropertiesOfObjectType() 275 binder::Variable *Checker::GetPropertyOfType(Type *type, const util::StringView &name, bool getPart… in GetPropertyOfType() 290 binder::Variable *Checker::GetPropertyOfUnionType(UnionType *type, const util::StringView &name, bo… in GetPropertyOfUnionType() 302 binder::Variable *prop = GetPropertyOfType(it, name); in GetPropertyOfUnionType() 345 binder::Variable *syntheticProp = binder::Scope::CreateVar(allocator_, name, flags, nullptr); in GetPropertyOfUnionType() 405 binder::Variable *prop = nullptr; in GetPropertyTypeForIndexType() 449 ASSERT(type->Variable() && type->Variable()->Declaration()->IsInterfaceDecl()); in GetBaseTypes() [all …]
|
D | helpers.cpp | 221 bool Checker::IsVariableUsedInConditionBody(const ir::AstNode *parent, binder::Variable *searchVar) in IsVariableUsedInConditionBody() 226 binder::Variable *resultVar = nullptr; in IsVariableUsedInConditionBody() 246 bool Checker::FindVariableInBinaryExpressionChain(const ir::AstNode *parent, binder::Variable *sear… in FindVariableInBinaryExpressionChain() 266 bool Checker::IsVariableUsedInBinaryExpressionChain(const ir::AstNode *parent, binder::Variable *se… in IsVariableUsedInBinaryExpressionChain() 340 binder::Variable *var = declarator->Id()->AsIdentifier()->Variable(); in InferSimpleVariableDeclaratorType() 357 Type *Checker::GetTypeOfVariable(binder::Variable *var) in GetTypeOfVariable() 416 ASSERT(ident->Variable() == var); in GetTypeOfVariable() 428 ASSERT(ident->Variable() == var); in GetTypeOfVariable() 467 binder::Variable *var) in GetTypeFromClassOrInterfaceReference() 481 Type *Checker::GetTypeFromTypeAliasReference(const ir::TSTypeReference *node, binder::Variable *var) in GetTypeFromTypeAliasReference() [all …]
|
D | destructuringContext.cpp | 57 if (!ident->Variable()) { in HandleDestructuringAssignment() 61 binder::Variable *variable = ident->Variable(); in HandleDestructuringAssignment() 73 void DestructuringContext::SetInferedTypeForVariable(binder::Variable *var, Type *inferedType, in SetInferedTypeForVariable() 171 … SetInferedTypeForVariable(assignmentPattern->Left()->AsIdentifier()->Variable(), inferedType, in HandleAssignmentPattern() 214 binder::Variable *memberVar = tuple->GetProperty(memberIndex, false); in GetTypeFromTupleByIndex() 380 …SetInferedTypeForVariable(rest->Argument()->AsIdentifier()->Variable(), inferedRestType, rest->Sta… in HandleRest() 424 if (childNode->IsIdentifier() && childNode->AsIdentifier()->Variable()) { in SetParameterType() 425 childNode->AsIdentifier()->Variable()->SetTsType(type); in SetParameterType() 467 … binder::Variable *currentTupleElement = inferedType_->AsObjectType()->Properties()[index_]; in Start() 481 … SetInferedTypeForVariable(it->AsIdentifier()->Variable(), nextInferedType, it->Start()); in Start() [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | scope.ts | 25 Variable 93 protected name2variable: Map<string, Variable> = new Map<string, Variable>(); 103 …abstract add(decl: Decl | string, declKind: VarDeclarationKind, status?: InitStatus): Variable | u… 105 getName2variable(): Map<string, Variable> { 188 findLocal(name: string): Variable | undefined { 192 find(name: string): { scope: Scope | undefined, level: number, v: Variable | undefined } { 339 addParameter(name: string, declKind: VarDeclarationKind, argIdx: number): Variable | undefined { 405 …add(decl: Decl | string, declKind: VarDeclarationKind, status?: InitStatus): Variable | undefined { 408 let v: Variable | undefined; 439 …add(decl: Decl | string, declKind: VarDeclarationKind, status?: InitStatus): Variable | undefined { [all …]
|
D | variable.ts | 32 export abstract class Variable { class 125 export class LocalVariable extends Variable { 145 export class ModuleVariable extends Variable { 184 export class GlobalVariable extends Variable {
|
D | lexenv.ts | 37 Variable 42 variable: Variable; 46 constructor(scope: Scope, level: number, variable: Variable) { 68 constructor(scope: Scope, level: number, variable: Variable) { 115 …constructor(scope: Scope, level: number, variable: Variable, isDeclaration: boolean, node: ts.Node… 190 function checkConstAssignment(pg: PandaGen, v: Variable, expansion: IRNode[], node: ts.Node | NodeK…
|
D | addVariable2Scope.ts | 42 Variable 45 function setVariableOrParameterType(node: ts.Node, v: Variable | undefined): void { 55 function setClassOrFunctionType(node: ts.Node, v: Variable | undefined): void { 62 function setTypeIndex(node: ts.Node, v: Variable | undefined, isClassOrFunction: boolean): void { 122 let v: Variable | undefined; 148 let v: Variable | undefined;
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | identifier.h | 32 class Variable; variable 104 const std::vector<binder::Variable *> &TSVariables() const in DEFINE_BITOPS() 109 void SetTSVariables(const std::vector<binder::Variable *> &tsVariables) in DEFINE_BITOPS() 139 std::vector<binder::Variable *> tsVariables_; in DEFINE_BITOPS()
|
D | identifier.cpp | 80 if (!Variable()) { in Check() 88 const binder::Decl *decl = Variable()->Declaration(); in Check() 94 return checker->GetTypeOfVariable(Variable()); in Check()
|
D | functionExpression.cpp | 44 binder::Variable *funcVar = nullptr; in Check() 48 … funcVar = func_->Parent()->Parent()->AsVariableDeclarator()->Id()->AsIdentifier()->Variable(); in Check()
|
D | arrowFunctionExpression.cpp | 44 binder::Variable *funcVar = nullptr; in Check() 48 … funcVar = func_->Parent()->Parent()->AsVariableDeclarator()->Id()->AsIdentifier()->Variable(); in Check()
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
D | lreference.h | 51 binder::Variable *Variable() const;
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
D | checker.h | 40 class Variable; variable 357 bool IsVariableUsedInConditionBody(const ir::AstNode *parent, binder::Variable *searchVar); 358 … bool FindVariableInBinaryExpressionChain(const ir::AstNode *parent, binder::Variable *searchVar); 359 …bool IsVariableUsedInBinaryExpressionChain(const ir::AstNode *parent, binder::Variable *searchVar); 366 Type *GetTypeOfVariable(binder::Variable *var); 368 …Type *GetTypeFromClassOrInterfaceReference(const ir::TSTypeReference *node, binder::Variable *var); 369 Type *GetTypeFromTypeAliasReference(const ir::TSTypeReference *node, binder::Variable *var); 370 Type *GetTypeReferenceType(const ir::TSTypeReference *node, binder::Variable *var); 396 bool ValidateInterfaceMemberRedeclaration(ObjectType *type, binder::Variable *prop, 398 …binder::Variable *GetPropertyOfType(Type *type, const util::StringView &name, bool getPartial = fa… [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_stub_builder.h | 62 Variable* result, Label *exit, Label *slowPath, ContainersType type); 65 Variable* result, Label *exit, Label *slowPath, ContainersType type); 68 Variable* result, Label *exit, Label *slowPath, ContainersType type); 71 Variable* result, Label *exit, Label *slowPath, ContainersType type); 74 Variable* result, Label *exit, Label *slowPath, ContainersType type); 77 Variable* result, Label *exit, Label *slowPath, ContainersType type);
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsTypeReference.cpp | 67 binder::Variable *var = typeName_->AsIdentifier()->Variable(); in GetType()
|
D | tsInterfaceDeclaration.h | 23 class Variable; variable 84 checker::Type *InferType(checker::Checker *checker, binder::Variable *bindingVar) const;
|