/arkcompiler/ets_frontend/es2panda/binder/ |
D | declaration.h | 42 class Decl { in DECLARATION_KINDS() 44 virtual ~Decl() = default; in DECLARATION_KINDS() 45 NO_COPY_SEMANTIC(Decl); in DECLARATION_KINDS() 46 NO_MOVE_SEMANTIC(Decl); in DECLARATION_KINDS() 129 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS() 138 class MultiDecl : public Decl { 141 : Decl(name), declarations_(allocator->Adapter()) in MultiDecl() 205 class TypeParameterDecl : public Decl { 215 class PropertyDecl : public Decl { 217 explicit PropertyDecl(util::StringView name) : Decl(name) {} in PropertyDecl() [all …]
|
D | variable.h | 34 class Decl; variable 72 Decl *Declaration() const in VARIABLE_TYPES() 107 void Reset(Decl *decl, VariableFlags flags) in VARIABLE_TYPES() 122 explicit Variable(Decl *decl, VariableFlags flags) : decl_(decl), flags_(flags) {} in VARIABLE_TYPES() 124 Decl *decl_; in VARIABLE_TYPES() 131 explicit LocalVariable(Decl *decl, VariableFlags flags); 163 LocalVariable *Copy(ArenaAllocator *allocator, Decl *decl) const; 171 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable() 183 explicit ModuleVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ModuleVariable() 208 explicit EnumVariable(Decl *decl, bool backReference = false) [all …]
|
D | scope.h | 222 const ArenaVector<Decl *> &Decls() const in Decls() 277 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() 283 … bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() 312 virtual bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 321 Decl *FindDecl(const util::StringView &name) const; 362 bool AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 366 ArenaVector<Decl *> decls_; 427 bool AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); 430 bool AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 434 bool AddClass(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); [all …]
|
D | scope.cpp | 149 Decl *Scope::FindDecl(const util::StringView &name) const in FindDecl() 192 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 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() 453 bool LocalScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding() 473 bool CatchParamScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDec… in AddBinding() [all …]
|
D | variable.cpp | 24 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable() 36 LocalVariable *LocalVariable::Copy(ArenaAllocator *allocator, Decl *decl) const in Copy() 76 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
|
D | binder.h | 215 void ReplaceConstReferenceWithInitialization(const ir::Identifier *ident, const Decl *decl);
|
D | binder.cpp | 196 if (exportDecl->Source() != nullptr || exportDecl->Decl() != nullptr || exportDecl->IsType()) { in ValidateExportDecl() 941 void Binder::ReplaceConstReferenceWithInitialization(const ir::Identifier *ident, const Decl *decl) in ReplaceConstReferenceWithInitialization()
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | scope.ts | 37 export abstract class Decl { class 49 export class VarDecl extends Decl { 55 export class LetDecl extends Decl { 61 export class ConstDecl extends Decl { 67 export class FuncDecl extends Decl { 73 export class ClassDecl extends Decl { 79 export class CatchParameter extends Decl { 85 export class FunctionParameter extends Decl { 94 protected decls: Decl[] = []; 103 …abstract add(decl: Decl | string, declKind: VarDeclarationKind, status?: InitStatus): Variable | u… [all …]
|
D | recorder.ts | 34 Decl, 64 private hoistMap: Map<Scope, Decl[]> = new Map<Scope, Decl[]>(); 308 let decl = <Decl>declScope.getDecl(name); 340 …s.Node, parent: ts.Node, name: string, declKind: VarDeclarationKind, isExportDecl: boolean): Decl { 762 private collectHoistDecls(node: ts.Node, scope: VariableScope, decl: Decl): boolean { 799 setHoistMap(scope: VariableScope, decl: Decl): void { 805 let hoistDecls = <Decl[]>this.hoistMap.get(scope); 817 getHoistMap(): Map<Scope, Decl[]> { 821 getHoistDeclsOfScope(scope: VariableScope): Decl[] {
|
D | addVariable2Scope.ts | 26 Decl, 119 hoistDecls = <Decl[]>hoistMap.get(scope); 141 hoistDecls = <Decl[]>hoistMap.get(nearestVariableScope);
|
D | syntaxChecker.ts | 32 Decl, 135 function hasDuplicateEntryAcrossScope(decl1: Decl, decl2: Decl): boolean { 141 function hasDuplicateEntryInScope(decl1: Decl, decl2: Decl, scope: Scope): boolean { 248 function checkDeclareGlobalId(decl: Decl, scope: Scope): void { 263 function throwDupIdError(decl: Decl): void {
|
/arkcompiler/ets_frontend/es2panda/ir/module/ |
D | exportDefaultDeclaration.h | 39 const AstNode *Decl() const in Decl() function 44 AstNode *Decl() in Decl() function
|
D | exportNamedDeclaration.h | 55 const Statement *Decl() const in Decl() function 60 Statement *Decl() in Decl() function
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | identifier.cpp | 88 const binder::Decl *decl = Variable()->Declaration(); in Check()
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
D | hoisting.cpp | 27 …d StoreModuleVarOrLocalVar(PandaGen *pg, binder::ScopeFindResult &result, const binder::Decl *decl) in StoreModuleVarOrLocalVar()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | helpers.cpp | 363 const binder::Decl *decl = var->Declaration(); in GetTypeOfVariable() 504 binder::Decl *decl = var->Declaration(); in GetTypeReferenceType()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
D | statementParser.cpp | 426 statement = statement->AsExportNamedDeclaration()->Decl(); in ParseTsModuleOrNamespaceDelaration() 1197 binder::Decl *currentDecl = res == bindings.end() ? nullptr : res->second->Declaration(); in AddFunctionToBinder() 2050 binder::Decl *decl = nullptr; in ParseVariableDeclarator() 2724 if (Extension() == ScriptExtension::TS && exportDecl->Decl()->IsVariableDeclaration() && in ParseExportDeclaration() 2752 binder::Decl *decl = AddImportDecl(isType, local->Name(), namespaceStart, in ParseNameSpaceImport() 2759 binder::Decl *ParserImpl::AddImportDecl(bool isType, in AddImportDecl() 2823 …binder::Decl *decl = AddImportDecl(isType, local->Name(), local->Start(), binder::DeclarationFlags… in ParseNamedImportSpecifiers() 2903 …binder::Decl *decl = AddImportDecl(isType, local->Name(), local->Start(), binder::DeclarationFlags… in ParseImportDefaultSpecifier()
|
D | parserImpl.h | 419 binder::Decl *AddImportDecl(bool isType,
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
D | transformer.cpp | 241 auto *decl = node->Decl(); in VisitTSNode() 279 auto *decl = node->Decl(); in VisitTSNode() 345 auto *decl = node->Decl(); in VisitExportClassDeclaration() 1377 binder::Decl *decl = nullptr; in CreateVariableDeclarationWithIdentify()
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
D | checker.h | 35 class Decl; variable
|
/arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
D | typeExtractor.cpp | 795 auto decl = originalNode->AsExportNamedDeclaration()->Decl(); in HandleNewlyGenFuncExpression()
|