Home
last modified time | relevance | path

Searched refs:decls (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/
Dscope.ts94 protected decls: Decl[] = []; property in Scope
258 this.decls.push(decl);
262 let decls = this.decls;
263 for (let i = 0; i < decls.length; i++) {
264 if (decls[i].name === name) {
273 let decls = this.decls;
274 for (let i = 0; i < decls.length; i++) {
275 if (decls[i].name === name) {
276 return decls[i];
284 return this.decls;
Dhoisting.ts95 let decls = scope.getDecls();
97 for (let i = 0; i < decls.length; i++) {
98 if (decls[i] instanceof FuncDecl) {
99 funcToHoist.push(<FuncDecl>decls[i]);
DaddVariable2Scope.ts139 let decls = scope.getDecls();
142 for (let j = 0; j < decls.length; j++) {
143 let decl = decls[j];
178 if (isGlobalIdentifier(decls[j].name)) {
179 v = scope.add(decls[j].name, VarDeclarationKind.VAR);
DsyntaxChecker.ts83 let decls = scope.getDecls();
85 for (let i = 0; i < decls.length; i++) {
86 checkDeclareGlobalId(decls[i], scope);
89 if (ts.isFunctionDeclaration(decls[i].node) && scope instanceof ModuleScope) {
90 hasDuplicateExportedFuncDecl(<FuncDecl>decls[i], exportFuncMap);
97 let decls = scope.getDecls();
99 if (decls[index] instanceof VarDecl) {
108 if (hasDuplicateEntryAcrossScope(decls[index], parentDecl)) {
109 throwDupIdError(decls[index]);
117 let decls = scope.getDecls();
[all …]
/arkcompiler/ets_frontend/ts2panda/src/base/
Dlreference.ts166 let decls = realNode.declarations; variable
167 if (decls.length != 1) {
170 return LReference.generateLReference(compiler, decls[0].name, true);