• Home
  • Raw
  • Download

Lines Matching full:this

4  * you may not use this file except in compliance with the License.
43 this.name = name;
44 this.node = node;
45 this.isModule = isModule;
106 return this.name2variable;
110 return this.startInsIdx;
114 this.startInsIdx = startInsIdx;
118 this.endInsIdx = endInsIdx;
122 return this.endInsIdx;
126 this.parent = parentScope;
130 return this.parent;
134 let sp: Scope | undefined = this;
135 let pp = this.getParent();
145 let sp: Scope | undefined = this;
158 let curScope: Scope | undefined = this;
171 let sp: Scope | undefined = this;
189 return this.name2variable.get(name);
194 let curScope: Scope | undefined = this;
204 LOGD(this.debugTag, "scope.find (" + name + ") :");
212 LOGD(this.debugTag, "scope.find (" + name + ") : undefined");
218 let curScope: Scope | undefined = this;
233 let curScope: Scope | undefined = this;
234 let enclosingVariableScope: VariableScope = this.getNearestVariableScope();
258 this.decls.push(decl);
262 let decls = this.decls;
273 let decls = this.decls;
284 return this.decls;
288 this.isArgumentsOrRestargs = true;
292 return this.isArgumentsOrRestargs;
296 let scope = this;
312 return this.lexVarInfo;
316 this.lexVarInfo.set(name, slot);
320 return this.node;
324 this.parentVariableScope = scope;
328 return this.parentVariableScope;
332 return this.childVariableScope;
336 this.childVariableScope.push(scope);
340 …LOGD(this.debugTag, "VariableScope.addArg(" + name + "), kind(" + declKind + ")", "argIdx(" + argI…
341 let v = this.add(name, declKind, InitStatus.INITIALIZED);
345 this.parameters.push(v);
350 let funcObj = this.name2variable.get(MandatoryFuncObj);
351 this.name2variable.set(funcName, funcObj!);
355 return this.needCreateLexEnv;
359 this.needCreateLexEnv = true;
363 return this.startLexIdx;
367 return this.parameters.length;
371 return this.parameters;
375 this.needCreateLexEnv = true;
376 return this.startLexIdx++;
380 this.useArgs = value;
384 return this.useArgs;
388 let childVariableScopes = this.getChildVariableScope();
402 this.node = node ? node : undefined;
407 LOGD(this.debugTag, "globalscope.add (" + name + "), kind:" + declKind);
414 this.name2variable.set(name, v);
424 this.node = node;
425 this.moduleRecord = new SourceTextModuleRecord(node.fileName);
429 let decl = this.getDecl(exportedLocalName);
436 return this.moduleRecord;
441 LOGD(this.debugTag, "modulescope.add (" + name + "), kind:" + declKind);
459 this.name2variable.set(name, v);
469 this.parent = parent ? parent : undefined;
470 this.node = node ? node : undefined;
474 this.parameterLength = length;
478 return this.parameterLength;
482 this.funcName = name;
486 return this.funcName;
490 return this.parent;
496 LOGD(this.debugTag, "functionscope.add (" + name + "), kind:" + declKind);
501 let topLevelScope = this.getRootScope();
505 this.name2variable.set(name, v);
508 this.name2variable.set(name, v);
517 this.parent = parent
524 LOGD(this.debugTag, "localscope.add (" + name + "), kind:" + declKind);
526 let topLevelScope = this.getRootScope();
534 let functionScope = this.getNearestVariableScope();
538 this.name2variable.set(name, v);
554 return this.lexVarInfo;
558 this.lexVarInfo.set(name, slot);
562 return this.needCreateLexEnv;
566 this.needCreateLexEnv = true;
570 this.needCreateLexEnv = true;
571 return this.startLexIdx++;
575 return this.startLexIdx;