1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
=== tests/cases/compiler/moduleMemberWithoutTypeAnnotation1.ts ===
module TypeScript.Parser {
>TypeScript : typeof TypeScript
>Parser : typeof Parser
class SyntaxCursor {
>SyntaxCursor : SyntaxCursor
public currentNode(): SyntaxNode {
>currentNode : () => SyntaxNode
return null;
>null : null
}
}
}
module TypeScript {
>TypeScript : typeof TypeScript
export interface ISyntaxElement { };
export interface ISyntaxToken { };
export class PositionedElement {
>PositionedElement : PositionedElement
public childIndex(child: ISyntaxElement) {
>childIndex : (child: ISyntaxElement) => void
>child : ISyntaxElement
return Syntax.childIndex();
>Syntax.childIndex() : void
>Syntax.childIndex : () => void
>Syntax : typeof Syntax
>childIndex : () => void
}
}
export class PositionedToken {
>PositionedToken : PositionedToken
constructor(parent: PositionedElement, token: ISyntaxToken, fullStart: number) {
>parent : PositionedElement
>token : ISyntaxToken
>fullStart : number
}
}
}
module TypeScript {
>TypeScript : typeof TypeScript
export class SyntaxNode {
>SyntaxNode : SyntaxNode
public findToken(position: number, includeSkippedTokens: boolean = false): PositionedToken {
>findToken : (position: number, includeSkippedTokens?: boolean) => PositionedToken
>position : number
>includeSkippedTokens : boolean
>false : false
var positionedToken = this.findTokenInternal(null, position, 0);
>positionedToken : any
>this.findTokenInternal(null, position, 0) : any
>this.findTokenInternal : (x: any, y: any, z: any) => any
>this : this
>findTokenInternal : (x: any, y: any, z: any) => any
>null : null
>position : number
>0 : 0
return null;
>null : null
}
findTokenInternal(x, y, z) {
>findTokenInternal : (x: any, y: any, z: any) => any
>x : any
>y : any
>z : any
return null;
>null : null
}
}
}
module TypeScript.Syntax {
>TypeScript : typeof TypeScript
>Syntax : typeof Syntax
export function childIndex() { }
>childIndex : () => void
export class VariableWidthTokenWithTrailingTrivia implements ISyntaxToken {
>VariableWidthTokenWithTrailingTrivia : VariableWidthTokenWithTrailingTrivia
private findTokenInternal(parent: PositionedElement, position: number, fullStart: number) {
>findTokenInternal : (parent: PositionedElement, position: number, fullStart: number) => PositionedToken
>parent : PositionedElement
>position : number
>fullStart : number
return new PositionedToken(parent, this, fullStart);
>new PositionedToken(parent, this, fullStart) : PositionedToken
>PositionedToken : typeof PositionedToken
>parent : PositionedElement
>this : this
>fullStart : number
}
}
}
|