(msg string)
| 584 | } |
| 585 | |
| 586 | func (p *Parser) syntaxError(msg string) SyntaxError { |
| 587 | return SyntaxError{ |
| 588 | msg: msg, |
| 589 | Expression: p.expression, |
| 590 | Offset: p.lookaheadToken(0).position, |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | // Create a SyntaxError based on the provided token. |
| 595 | // This differs from syntaxError() which creates a SyntaxError |
no test coverage detected