(diagnostic *diagnostics.Message, pos int, length int, args ...any)
| 415 | } |
| 416 | |
| 417 | func (s *Scanner) errorAt(diagnostic *diagnostics.Message, pos int, length int, args ...any) { |
| 418 | if s.onError != nil { |
| 419 | s.onError(diagnostic, pos, length, args...) |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | // NOTE: even though this returns a rune, it only decodes the current byte. |
| 424 | // It must be checked against utf8.RuneSelf to verify that a call to charAndSize |
no test coverage detected