MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / TOKEN

Function TOKEN

src/parser/token.ts:134–136  ·  view source on GitHub ↗
(kind: TokenKind, pos: TokenPosition, opts?: { hasLeftSpacing?: boolean, value?: Token['value'], children?: Token['children'] })

Source from the content-addressed store, hash-verified

132 * - opts.children: for template syntax
133*/
134export function TOKEN(kind: TokenKind, pos: TokenPosition, opts?: { hasLeftSpacing?: boolean, value?: Token['value'], children?: Token['children'] }): Token {
135 return new Token(kind, pos, opts?.hasLeftSpacing, opts?.value, opts?.children);
136}
137
138const KEYWORDS = [
139 TokenKind.NullKeyword,

Callers 10

nextFunction · 0.90
parser.tsFile · 0.90
readTokenMethod · 0.85
tryReadWordMethod · 0.85
tryReadDigitsMethod · 0.85
readStringLiteralMethod · 0.85
readTemplateMethod · 0.85
getTokenMethod · 0.85
lookaheadMethod · 0.85
loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected