MCPcopy Create free account
hub / github.com/brimdata/super / matchType

Method matchType

sup/parser-types.go:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (p *Parser) matchType() (ast.Type, error) {
19 typ, err := p.matchTypeComponent()
20 if err != nil {
21 return nil, err
22 }
23 if ok, _ := p.lexer.match('|'); ok {
24 return p.matchTypeUnion(typ)
25 }
26 return typ, nil
27}
28
29func (p *Parser) matchTypeComponent() (ast.Type, error) {
30 if typ, err := p.matchTypeName(); typ != nil || err != nil {

Callers 3

parseTypeMethod · 0.95
matchTypeParensMethod · 0.95
matchTypeBodyMethod · 0.95

Calls 3

matchTypeComponentMethod · 0.95
matchTypeUnionMethod · 0.95
matchMethod · 0.45

Tested by

no test coverage detected