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

Function next

test/parser.ts:159–162  ·  view source on GitHub ↗
(stream: Scanner, kind: TokenKind, pos: TokenPosition, opts: { hasLeftSpacing?: boolean, value?: string })

Source from the content-addressed store, hash-verified

157 return stream;
158 }
159 function next(stream: Scanner, kind: TokenKind, pos: TokenPosition, opts: { hasLeftSpacing?: boolean, value?: string }) {
160 assert.deepStrictEqual(stream.getToken(), TOKEN(kind, pos, opts));
161 stream.next();
162 }
163
164 test.concurrent('eof', async () => {
165 const source = '';

Callers 1

parser.tsFile · 0.85

Calls 3

TOKENFunction · 0.90
getTokenMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected