TypeScript/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.types

123 lines
3.2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/moduleMemberWithoutTypeAnnotation1.ts ===
module TypeScript.Parser {
>TypeScript : typeof TypeScript
>Parser : typeof Parser
2014-08-15 23:33:16 +02:00
class SyntaxCursor {
>SyntaxCursor : SyntaxCursor
2014-08-15 23:33:16 +02:00
public currentNode(): SyntaxNode {
>currentNode : () => SyntaxNode
>SyntaxNode : SyntaxNode
2014-08-15 23:33:16 +02:00
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
}
}
module TypeScript {
>TypeScript : typeof TypeScript
2014-08-15 23:33:16 +02:00
export interface ISyntaxElement { };
>ISyntaxElement : ISyntaxElement
2014-08-15 23:33:16 +02:00
export interface ISyntaxToken { };
>ISyntaxToken : ISyntaxToken
2014-08-15 23:33:16 +02:00
export class PositionedElement {
>PositionedElement : PositionedElement
2014-08-15 23:33:16 +02:00
public childIndex(child: ISyntaxElement) {
>childIndex : (child: ISyntaxElement) => void
>child : ISyntaxElement
>ISyntaxElement : ISyntaxElement
2014-08-15 23:33:16 +02:00
return Syntax.childIndex();
>Syntax.childIndex() : void
>Syntax.childIndex : () => void
>Syntax : typeof Syntax
>childIndex : () => void
2014-08-15 23:33:16 +02:00
}
}
export class PositionedToken {
>PositionedToken : PositionedToken
2014-08-15 23:33:16 +02:00
constructor(parent: PositionedElement, token: ISyntaxToken, fullStart: number) {
>parent : PositionedElement
>PositionedElement : PositionedElement
>token : ISyntaxToken
>ISyntaxToken : ISyntaxToken
>fullStart : number
2014-08-15 23:33:16 +02:00
}
}
}
module TypeScript {
>TypeScript : typeof TypeScript
2014-08-15 23:33:16 +02:00
export class SyntaxNode {
>SyntaxNode : SyntaxNode
2014-08-15 23:33:16 +02:00
public findToken(position: number, includeSkippedTokens: boolean = false): PositionedToken {
>findToken : (position: number, includeSkippedTokens?: boolean) => PositionedToken
>position : number
>includeSkippedTokens : boolean
2015-04-13 21:36:11 +02:00
>false : boolean
>PositionedToken : PositionedToken
2014-08-15 23:33:16 +02:00
var positionedToken = this.findTokenInternal(null, position, 0);
>positionedToken : any
2014-08-15 23:33:16 +02:00
>this.findTokenInternal(null, position, 0) : any
>this.findTokenInternal : (x: any, y: any, z: any) => any
>this : SyntaxNode
>findTokenInternal : (x: any, y: any, z: any) => any
2015-04-13 21:36:11 +02:00
>null : null
>position : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
findTokenInternal(x, y, z) {
>findTokenInternal : (x: any, y: any, z: any) => any
>x : any
>y : any
>z : any
2014-08-15 23:33:16 +02:00
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
}
}
module TypeScript.Syntax {
>TypeScript : typeof TypeScript
>Syntax : typeof Syntax
2014-08-15 23:33:16 +02:00
export function childIndex() { }
>childIndex : () => void
2014-08-15 23:33:16 +02:00
export class VariableWidthTokenWithTrailingTrivia implements ISyntaxToken {
>VariableWidthTokenWithTrailingTrivia : VariableWidthTokenWithTrailingTrivia
>ISyntaxToken : ISyntaxToken
2014-08-15 23:33:16 +02:00
private findTokenInternal(parent: PositionedElement, position: number, fullStart: number) {
>findTokenInternal : (parent: PositionedElement, position: number, fullStart: number) => PositionedToken
>parent : PositionedElement
>PositionedElement : PositionedElement
>position : number
>fullStart : number
2014-08-15 23:33:16 +02:00
return new PositionedToken(parent, this, fullStart);
>new PositionedToken(parent, this, fullStart) : PositionedToken
>PositionedToken : typeof PositionedToken
>parent : PositionedElement
>this : VariableWidthTokenWithTrailingTrivia
>fullStart : number
2014-08-15 23:33:16 +02:00
}
}
}