Lines Matching defs:column
139 pos: Cell::new(Position { offset: 0, line: 1, column: 1 }),
358 self.pos.set(Position { offset: 0, line: 1, column: 1 });
402 /// Return the current column of the parser.
404 /// The column number starts at `1` and is reset whenever a `\n` is seen.
405 fn column(&self) -> usize {
406 self.parser().pos.get().column
472 let Position { mut offset, mut line, mut column } = self.pos();
475 column = 1;
477 column = column.checked_add(1).unwrap();
480 self.parser().pos.set(Position { offset, line, column });
605 /// line and column.
621 column: self.column().checked_add(1).unwrap(),
625 next.column = 1;
2376 fn npos(offset: usize, line: usize, column: usize) -> Position {
2377 Position::new(offset, line, column)
2394 column: 1 + subject[..range.start]
2403 column: 1 + subject[..range.end]
4735 column: span.start.column + 1,
4740 column: span.end.column - 1,