Skip to content

Commit

Permalink
value/source_map: make all fields of Position public
Browse files Browse the repository at this point in the history
  • Loading branch information
clarete committed Oct 3, 2023
1 parent 8ff6971 commit 098a303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions langlang_value/src/source_map.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#[derive(Clone, Debug, Default, PartialEq, PartialOrd)]
pub struct Position {
/// number of chars have been seen since the begining of the input
offset: usize,
pub offset: usize,
/// number of EOL sequences seen since the begining of the input
line: usize,
pub line: usize,
/// number of chars seen since the begining of the line
column: usize,
pub column: usize,
}

impl Position {
Expand Down

0 comments on commit 098a303

Please sign in to comment.