提交 ba70479e 编写于 作者: I isidor

debug: Scope is also an ExpressionContainer

上级 7b8abcb2
......@@ -288,24 +288,10 @@ export class Variable extends ExpressionContainer implements debug.IExpression {
}
}
export class Scope implements debug.IScope {
export class Scope extends ExpressionContainer implements debug.IScope {
private children: TPromise<Variable[]>;
constructor(private threadId: number, public name: string, public reference: number, public expensive: boolean) {
this.children = null;
}
public getId(): string {
return `scope:${ this.threadId }:${ this.name }:${ this.reference }`;
}
public getChildren(debugService: debug.IDebugService): TPromise<Variable[]> {
if (!this.children) {
this.children = resolveChildren(debugService, this);
}
return this.children;
constructor(private threadId: number, public name: string, reference: number, public expensive: boolean) {
super(reference, `scope:${threadId}:${name}:${reference}`, true);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册