• Home
  • Raw
  • Download

Lines Matching full:scope

91 export abstract class Scope {  class
92 protected debugTag = "scope";
95 protected parent: Scope | undefined = undefined;
125 setParent(parentScope: Scope | undefined) {
129 getParent(): Scope | undefined {
133 getRootScope(): Scope {
134 let sp: Scope | undefined = this;
145 let sp: Scope | undefined = this;
158 let curScope: Scope | undefined = this;
171 let sp: Scope | undefined = this;
192 find(name: string): { scope: Scope | undefined, level: number, v: Variable | undefined } {
194 let curScope: Scope | undefined = this;
204 LOGD(this.debugTag, "scope.find (" + name + ") :");
206 return { scope: curScope, level: tmpLevel, v: resolve };
212 LOGD(this.debugTag, "scope.find (" + name + ") : undefined");
213 return { scope: undefined, level: 0, v: undefined };
216 findDeclPos(name: string): Scope | undefined {
217 let declPos: Scope | undefined = undefined;
218 let curScope: Scope | undefined = this;
233 let curScope: Scope | undefined = this;
244 … return {isLexical: false, scope: curScope, defLexicalScope: undefined, v: result};
248 … return {isLexical: true, scope: curScope, defLexicalScope: enclosingDefLexicalScope, v: result};
254 return {isLexical: false, scope: undefined, defLexicalScope: undefined, v: undefined};
296 let scope = this;
297 return ((scope instanceof VariableScope) || (scope instanceof LoopScope));
301 export abstract class VariableScope extends Scope {
323 setParentVariableScope(scope: VariableScope) {
324 this.parentVariableScope = scope;
335 addChildVariableScope(scope: VariableScope) {
336 this.childVariableScope.push(scope);
467 constructor(parent?: Scope, node?: ts.FunctionLikeDeclaration) {
489 getParent(): Scope | undefined {
514 export class LocalScope extends Scope {
515 constructor(parent: Scope) {
549 constructor(parent: Scope) {