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

Function parseExists

src/parser/syntaxes/expressions.ts:538–546  ·  view source on GitHub ↗

* ```abnf * Exists = "exists" Reference * ```

(s: ITokenStream)

Source from the content-addressed store, hash-verified

536 * ```
537*/
538function parseExists(s: ITokenStream): Ast.Exists {
539 const startPos = s.getPos();
540
541 s.expect(TokenKind.ExistsKeyword);
542 s.next();
543 const identifier = parseReference(s);
544
545 return NODE('exists', { identifier }, startPos, s.getPos());
546}
547
548/**
549 * ```abnf

Callers 1

parseAtomFunction · 0.85

Calls 5

parseReferenceFunction · 0.85
NODEFunction · 0.85
getPosMethod · 0.65
expectMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected