summaryrefslogtreecommitdiff
path: root/src/locators/source.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/locators/source.rs')
-rw-r--r--src/locators/source.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/locators/source.rs b/src/locators/source.rs
index 9fd1b2b..2cf1ef9 100644
--- a/src/locators/source.rs
+++ b/src/locators/source.rs
@@ -49,6 +49,8 @@ pub struct Position {
}
impl Position {
+ pub const ZERO: Self = Self { line: 0, column: 0 };
+
pub fn to_next_char(&mut self) {
self.column += 1;
}