Home
last modified time | relevance | path

Searched refs:Decl (Results 1 – 21 of 21) sorted by relevance

/arkcompiler/ets_frontend/es2panda/binder/
Ddeclaration.h42 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 …]
Dvariable.h34 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 …]
Dscope.h222 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 …]
Dscope.cpp149 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 …]
Dvariable.cpp24 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()
Dbinder.h215 void ReplaceConstReferenceWithInitialization(const ir::Identifier *ident, const Decl *decl);
Dbinder.cpp196 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/
Dscope.ts37 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 …]
Drecorder.ts34 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[] {
DaddVariable2Scope.ts26 Decl,
119 hoistDecls = <Decl[]>hoistMap.get(scope);
141 hoistDecls = <Decl[]>hoistMap.get(nearestVariableScope);
DsyntaxChecker.ts32 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/
DexportDefaultDeclaration.h39 const AstNode *Decl() const in Decl() function
44 AstNode *Decl() in Decl() function
DexportNamedDeclaration.h55 const Statement *Decl() const in Decl() function
60 Statement *Decl() in Decl() function
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.cpp88 const binder::Decl *decl = Variable()->Declaration(); in Check()
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dhoisting.cpp27 …d StoreModuleVarOrLocalVar(PandaGen *pg, binder::ScopeFindResult &result, const binder::Decl *decl) in StoreModuleVarOrLocalVar()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dhelpers.cpp363 const binder::Decl *decl = var->Declaration(); in GetTypeOfVariable()
504 binder::Decl *decl = var->Declaration(); in GetTypeReferenceType()
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp426 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()
DparserImpl.h419 binder::Decl *AddImportDecl(bool isType,
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp241 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/
Dchecker.h35 class Decl; variable
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.cpp795 auto decl = originalNode->AsExportNamedDeclaration()->Decl(); in HandleNewlyGenFuncExpression()