(diagnostic *diagnostics.Message)
| 411 | } |
| 412 | |
| 413 | func (s *Scanner) error(diagnostic *diagnostics.Message) { |
| 414 | s.errorAt(diagnostic, s.pos, 0) |
| 415 | } |
| 416 | |
| 417 | func (s *Scanner) errorAt(diagnostic *diagnostics.Message, pos int, length int, args ...any) { |
| 418 | if s.onError != nil { |
no test coverage detected