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

Function parseContinue

src/parser/syntaxes/statements.ts:532–544  ·  view source on GitHub ↗

* ```abnf * Continue = "continue" ["#" IDENT] * ```

(s: ITokenStream)

Source from the content-addressed store, hash-verified

530 * ```
531*/
532function parseContinue(s: ITokenStream): Ast.Continue {
533 const startPos = s.getPos();
534
535 s.expect(TokenKind.ContinueKeyword);
536 s.next();
537
538 let label: string | undefined;
539 if (s.is(TokenKind.Sharp)) {
540 label = parseLabel(s);
541 }
542
543 return NODE('continue', { label }, startPos, s.getPos());
544}
545
546/**
547 * ```abnf

Callers 1

parseStatementFunction · 0.85

Calls 6

parseLabelFunction · 0.85
NODEFunction · 0.85
getPosMethod · 0.65
expectMethod · 0.65
nextMethod · 0.65
isMethod · 0.65

Tested by

no test coverage detected