MCPcopy Create free account
hub / github.com/denoland/std / parseList

Function parseList

http/unstable_structured_fields.ts:570–581  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

568 * ```
569 */
570export function parseList(input: string): List {
571 const state: ParserState = { input, pos: 0 };
572 skipSP(state);
573 const list = parseListInternal(state);
574 skipSP(state);
575 if (!isEof(state)) {
576 throw new SyntaxError(
577 `Invalid structured field: unexpected character at position ${state.pos}`,
578 );
579 }
580 return list;
581}
582
583function parseListInternal(state: ParserState): List {
584 const members: List = [];

Callers 3

fnFunction · 0.90
runConformanceTestsFunction · 0.90

Calls 3

skipSPFunction · 0.85
parseListInternalFunction · 0.85
isEofFunction · 0.85

Tested by

no test coverage detected