提交 3e7bc808 编写于 作者: I isidor

debug repl elements: no need for toString method

上级 1ab4fcd5
......@@ -38,8 +38,6 @@ export abstract class AbstractReplElement implements IReplElement {
public getId(): string {
return `replelement:${this.id}`;
}
abstract toString(): string;
}
export class SimpleReplElement extends AbstractReplElement {
......@@ -51,10 +49,6 @@ export class SimpleReplElement extends AbstractReplElement {
) {
super(source);
}
public toString(): string {
return this.value;
}
}
export class RawObjectReplElement extends AbstractReplElement implements IExpression {
......@@ -95,10 +89,6 @@ export class RawObjectReplElement extends AbstractReplElement implements IExpres
return TPromise.as(result);
}
public toString(): string {
return this.name ? `${this.name}: ${this.value}` : this.value;
}
}
export class ExpressionContainer implements IExpressionContainer {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册