()
| 8 | ) |
| 9 | |
| 10 | func (p *Parser) parseType() (ast.Type, error) { |
| 11 | typ, err := p.matchType() |
| 12 | if typ == nil && err == nil { |
| 13 | err = p.error("couldn't parse type") |
| 14 | } |
| 15 | return typ, err |
| 16 | } |
| 17 | |
| 18 | func (p *Parser) matchType() (ast.Type, error) { |
| 19 | typ, err := p.matchTypeComponent() |
no test coverage detected