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

Function parseTypeParam

src/parser/syntaxes/types.ts:53–59  ·  view source on GitHub ↗

* ```abnf * TypeParam = IDENT * ```

(s: ITokenStream)

Source from the content-addressed store, hash-verified

51 * ```
52*/
53function parseTypeParam(s: ITokenStream): TypeParam {
54 s.expect(TokenKind.Identifier);
55 const name = s.getTokenValue();
56 s.next();
57
58 return { name };
59}
60
61/**
62 * ```abnf

Callers 1

parseTypeParamsFunction · 0.85

Calls 3

expectMethod · 0.65
getTokenValueMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected