()
| 450 | } |
| 451 | |
| 452 | func (s *scanner) Context() string { |
| 453 | t := s.Token() |
| 454 | return fmt.Sprintf("file %q, line %d, pos %d, token %s, last line %s", |
| 455 | s.filePath, t.line+1, t.pos, snippet(t.Value), snippet(s.lineStr)) |
| 456 | } |
| 457 | |
| 458 | func (s *scanner) WriteLineComment(w io.Writer) { |
| 459 | fmt.Fprintf(w, "//line %s:%d\n", s.filePath, s.t.line+1) |
no test coverage detected