(message *diagnostics.Message, args ...any)
| 323 | } |
| 324 | |
| 325 | func (p *Parser) parseErrorAtCurrentToken(message *diagnostics.Message, args ...any) *ast.Diagnostic { |
| 326 | return p.parseErrorAtRange(p.scanner.TokenRange(), message, args...) |
| 327 | } |
| 328 | |
| 329 | func (p *Parser) parseErrorAtRange(loc core.TextRange, message *diagnostics.Message, args ...any) *ast.Diagnostic { |
| 330 | // Don't report another error if it would just be at the same location as the last error |
no test coverage detected