Lines Matching full:name
38 name: string; property in Decl
42 constructor(name: string, node: ts.Node, isModule: ModuleVarKind) {
43 this.name = name;
188 findLocal(name: string): Variable | undefined {
189 return this.name2variable.get(name);
192 find(name: string): { scope: Scope | undefined, level: number, v: Variable | undefined } {
202 resolve = curScope.findLocal(name);
204 LOGD(this.debugTag, "scope.find (" + name + ") :");
212 LOGD(this.debugTag, "scope.find (" + name + ") : undefined");
216 findDeclPos(name: string): Scope | undefined {
220 if (curScope.hasDecl(name)) {
231 resolveDeclPos(name: string) {
241 let result = curScope.findLocal(name);
261 hasDecl(name: string): boolean {
264 if (decls[i].name == name) {
272 getDecl(name: string): Decl | undefined {
275 if (decls[i].name == name) {
315 addLexVarInfo(name: string, slot: number) {
316 this.lexVarInfo.set(name, slot);
339 addParameter(name: string, declKind: VarDeclarationKind, argIdx: number): Variable | undefined {
340 …LOGD(this.debugTag, "VariableScope.addArg(" + name + "), kind(" + declKind + ")", "argIdx(" + argI…
341 let v = this.add(name, declKind, InitStatus.INITIALIZED);
406 let name = decl instanceof Decl ? decl.name : decl;
407 LOGD(this.debugTag, "globalscope.add (" + name + "), kind:" + declKind);
410 v = new GlobalVariable(declKind, name);
412 v = new LocalVariable(declKind, name, status);
414 this.name2variable.set(name, v);
440 …let [name, isModule] = decl instanceof Decl ? [decl.name, decl.isModule] : [decl, ModuleVarKind.NO…
441 LOGD(this.debugTag, "modulescope.add (" + name + "), kind:" + declKind);
445 v = new ModuleVariable(declKind, name, InitStatus.UNINITIALIZED);
451 v = new GlobalVariable(declKind, name);
453 v = new LocalVariable(declKind, name);
455 v = new LocalVariable(declKind, name, status);
459 this.name2variable.set(name, v);
481 setFuncName(name: string) {
482 this.funcName = name;
494 let name = decl instanceof Decl ? decl.name : decl;
496 LOGD(this.debugTag, "functionscope.add (" + name + "), kind:" + declKind);
502 v = topLevelScope.add(name, declKind);
504 v = new LocalVariable(declKind, name);
505 this.name2variable.set(name, v);
507 v = new LocalVariable(declKind, name, status);
508 this.name2variable.set(name, v);
521 let name = decl instanceof Decl ? decl.name : decl;
524 LOGD(this.debugTag, "localscope.add (" + name + "), kind:" + declKind);
527 v = topLevelScope.add(name, declKind);
535 v = functionScope!.add(name, declKind);
537 v = new LocalVariable(declKind, name, status);
538 this.name2variable.set(name, v);
557 addLexVarInfo(name: string, slot: number) {
558 this.lexVarInfo.set(name, slot);