Lines Matching refs:line
106 line: usize,
111 /// Create a `Position` from the given line and column.
113 pub(crate) fn new(line: usize, column: usize) -> Self {
114 Self { line, column }
117 /// Get line.
119 pub(crate) fn line(&self) -> usize {
120 self.line
145 assert_eq!(position.line, 1);
149 /// UT test for `Position::line`.
156 /// 2. Call `Position::line` to get the line number of `Position`.
161 assert_eq!(position.line(), 1);
193 assert_eq!(position.line, 1);