(pos Pos)
| 353 | } |
| 354 | |
| 355 | func (p *Parser) parseFormat(pos Pos) (*FormatClause, error) { |
| 356 | if err := p.expectKeyword(KeywordFormat); err != nil { |
| 357 | return nil, err |
| 358 | } |
| 359 | formatIdent, err := p.parseIdent() |
| 360 | if err != nil { |
| 361 | return nil, err |
| 362 | } |
| 363 | return &FormatClause{ |
| 364 | FormatPos: pos, |
| 365 | Format: formatIdent, |
| 366 | }, nil |
| 367 | } |
| 368 | |
| 369 | func (p *Parser) wrapError(err error) error { |
| 370 | if err == nil { |
no test coverage detected