()
| 27 | } |
| 28 | |
| 29 | func (p *Parser) matchTypeComponent() (ast.Type, error) { |
| 30 | if typ, err := p.matchTypeName(); typ != nil || err != nil { |
| 31 | return typ, err |
| 32 | } |
| 33 | if typ, err := p.matchTypeRecord(); typ != nil || err != nil { |
| 34 | return typ, err |
| 35 | } |
| 36 | if typ, err := p.matchTypeArray(); typ != nil || err != nil { |
| 37 | return typ, err |
| 38 | } |
| 39 | if typ, err := p.matchTypeSetOrMap(); typ != nil || err != nil { |
| 40 | return typ, err |
| 41 | } |
| 42 | if typ, err := p.matchTypeParens(); typ != nil || err != nil { |
| 43 | return typ, err |
| 44 | } |
| 45 | // no match |
| 46 | return nil, nil |
| 47 | } |
| 48 | |
| 49 | func (p *Parser) matchIdentifier() (string, error) { |
| 50 | l := p.lexer |
no test coverage detected