提交 0053dfc7 编写于 作者: J Johannes Rieken

consume gulp-tsb 1.10.0 and fix 'new' compile issues

上级 3843179a
......@@ -185,7 +185,7 @@ export class Builder implements IDisposable {
}
// Wrap Builders into MultiBuilder
let builders = [this];
let builders:Builder[] = [this];
if (obj instanceof MultiBuilder) {
for (let i = 0; i < (<MultiBuilder>obj).length; i++) {
builders.push((<MultiBuilder>obj).item(i));
......@@ -1918,7 +1918,7 @@ export class MultiBuilder extends Builder {
// Mixin Builder functions to operate on all builders
let $outer = this;
let propertyFn = (prop: string) => {
(<any>$outer)[prop] = function() {
(<any>$outer)[prop] = function(): any {
let args = Array.prototype.slice.call(arguments);
let returnValues: any[];
......
......@@ -173,7 +173,7 @@ export class Node {
}
public getTextProvider(): ITextProvider {
var node = this;
var node: Node = this;
while (node && !node.textProvider) {
node = node.parent;
}
......@@ -349,7 +349,7 @@ export class Node {
}
public findParent(type:NodeType):Node {
var result = this;
var result: Node = this;
while (result && result.type !== type) {
result = result.parent;
}
......
......@@ -31,8 +31,8 @@ export class Element implements IElement {
this.children.push(child);
}
public findRoot() : Element {
var curr = this;
public findRoot(): Element {
var curr: Element = this;
while (curr.parent && !(curr.parent instanceof RootElement)) {
curr = curr.parent;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册