Methods

M getStartPos() number

Returns: { number }

M getTextPos() number

Returns: { number }

M getToken() ts.SyntaxKind

Returns: { ts.SyntaxKind }

M getTokenPos() number

Returns: { number }

M getTokenText() string

Returns: { string }

M getTokenValue() string

Returns: { string }

M hasPrecedingLineBreak() boolean

Returns: { boolean }

M isIdentifier() boolean

Returns: { boolean }

M isReservedWord() boolean

Returns: { boolean }

M isUnterminated() boolean

Returns: { boolean }

M lookAhead<T>(callback: ts.Scanner.LookAheadCallbackCallback) T

Parameters:
Name Type
callback ts.Scanner.LookAheadCallbackCallback
Returns: { T }

M reScanGreaterToken() ts.SyntaxKind

Returns: { ts.SyntaxKind }

M reScanSlashToken() ts.SyntaxKind

Returns: { ts.SyntaxKind }

M reScanTemplateToken() ts.SyntaxKind

Returns: { ts.SyntaxKind }

M scan() ts.SyntaxKind

Returns: { ts.SyntaxKind }

M setText(text: string) void

Parameters:
Name Type
text string
Returns: { void }

M setTextPos(textPos: number) void

Parameters:
Name Type
textPos number
Returns: { void }

M tryScan<T>(callback: ts.Scanner.TryScanCallbackCallback) T

Parameters:
Name Type
callback ts.Scanner.TryScanCallbackCallback
Returns: { T }

Callbacks

LookAheadCallbackCallback() T

Returns: { T }

TryScanCallbackCallback() T

Returns: { T }