Home | History | Annotate | Download | only in scanner

Lines Matching full:column

298 		if s.Column != pos.Column {
299 t.Errorf("column = %d, want %d for %q", s.Column, pos.Column, k.text)
515 if got.Offset != want.Offset || got.Line != want.Line || got.Column != want.Column {
516 t.Errorf("got offset, line, column = %d, %d, %d; want %d, %d, %d",
517 got.Offset, got.Line, got.Column, want.Offset, want.Line, want.Column)
521 func checkNextPos(t *testing.T, s *Scanner, offset, line, column int, char rune) {
525 want := Position{Offset: offset, Line: line, Column: column}
529 func checkScanPos(t *testing.T, s *Scanner, offset, line, column int, char rune) {
530 want := Position{Offset: offset, Line: line, Column: column}
544 checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})
546 checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})
550 checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})
562 checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})