summaryrefslogtreecommitdiff
path: root/src/tokens/tracked_integer.rs
blob: fa55f09d1575a4cc9cc20e929b0545c48df4f3fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;


#[derive(Clone)]
pub struct TrackedInteger {
    pub source: SourceSpan,
    pub value: isize,
}

impl std::fmt::Display for TrackedInteger {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
        write!(f, "{}", self.value)
    }
}