UNPKG

964 BTypeScriptView Raw
1import { TextRange } from './TextRange';
2import { Token, TokenKind } from './Token';
3export declare class Tokenizer {
4 private static readonly _commonMarkPunctuationCharacters;
5 private static readonly _wordCharacters;
6 private static _charCodeMap;
7 private static _punctuationTokens;
8 /**
9 * Given a list of input lines, this returns an array of extracted tokens.
10 * The last token will always be TokenKind.EndOfInput.
11 */
12 static readTokens(lines: TextRange[]): Token[];
13 /**
14 * Returns true if the token is a CommonMark punctuation character.
15 * These are basically all the ASCII punctuation characters.
16 */
17 static isPunctuation(tokenKind: TokenKind): boolean;
18 private static _pushTokensForLine;
19 /**
20 * Returns true if the token can be comprised of multiple characters
21 */
22 private static _isMultiCharacterToken;
23 private static _ensureInitialized;
24}
25//# sourceMappingURL=Tokenizer.d.ts.map
\No newline at end of file