()
| 30 | } |
| 31 | |
| 32 | func (p *parser) consumeComment() (*ast.Comment, bool) { |
| 33 | if p.err != nil { |
| 34 | return nil, false |
| 35 | } |
| 36 | tok := p.peek() |
| 37 | if tok.Kind != lexer.Comment { |
| 38 | return nil, false |
| 39 | } |
| 40 | p.next() |
| 41 | return &ast.Comment{ |
| 42 | Value: tok.Value, |
| 43 | Position: &tok.Pos, |
| 44 | }, true |
| 45 | } |
| 46 | |
| 47 | func (p *parser) consumeCommentGroup() { |
| 48 | if p.err != nil { |
no test coverage detected