Interface JSONScanner
interface JSONScanner {
getPosition(): number;
getToken(): SyntaxKind;
getTokenError(): ScanError;
getTokenLength(): number;
getTokenOffset(): number;
getTokenStartCharacter(): number;
getTokenStartLine(): number;
getTokenValue(): string;
scan(): SyntaxKind;
setPosition(pos: number): void;
}
getPosition(): number;
getToken(): SyntaxKind;
getTokenError(): ScanError;
getTokenLength(): number;
getTokenOffset(): number;
getTokenStartCharacter(): number;
getTokenStartLine(): number;
getTokenValue(): string;
scan(): SyntaxKind;
setPosition(pos: number): void;
}
Methods
getPosition
getToken
- get
Token (): SyntaxKind Returns the last read token.
Returns SyntaxKind
getTokenError
getTokenLength
getTokenOffset
getTokenStartCharacter
getTokenStartLine
getTokenValue
scan
- scan(): SyntaxKind
Read the next token. Returns the token code.
Returns SyntaxKind
The scanner object, representing a JSON scanner at a position in the input string.