MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / isKeywordTokenKind

Function isKeywordTokenKind

src/parser/token.ts:164–166  ·  view source on GitHub ↗
(token: TokenKind)

Source from the content-addressed store, hash-verified

162export type KeywordTokenKind = (typeof KEYWORDS)[number];
163
164export function isKeywordTokenKind(token: TokenKind): token is KeywordTokenKind {
165 return (KEYWORDS as readonly TokenKind[]).includes(token);
166}
167
168export function keywordTokenKindToString(token: KeywordTokenKind): string {
169 switch (token) {

Callers 1

parseObjectKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected