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

Function parseUnionTypeInner

src/parser/syntaxes/types.ts:88–94  ·  view source on GitHub ↗

* ```abnf * UnionTypeTerm = FnType / NamedType * ```

(s: ITokenStream)

Source from the content-addressed store, hash-verified

86 * ```
87*/
88function parseUnionTypeInner(s: ITokenStream): Ast.TypeSource {
89 if (s.is(TokenKind.At)) {
90 return parseFnType(s);
91 } else {
92 return parseNamedType(s);
93 }
94}
95
96/**
97 * ```abnf

Callers 1

parseUnionTypeFunction · 0.85

Calls 3

parseFnTypeFunction · 0.85
parseNamedTypeFunction · 0.85
isMethod · 0.65

Tested by

no test coverage detected