Switch to i32 for tracking bracket depth.

This commit is contained in:
Tom Alexander
2023-08-29 11:07:00 -04:00
parent 14b1d0526c
commit bd97d2f69d
7 changed files with 26 additions and 26 deletions

View File

@@ -19,9 +19,9 @@ pub struct OrgSource<'s> {
start_of_line: usize,
preceding_character: Option<char>,
line_number: usize,
bracket_depth: isize, // []
brace_depth: isize, // {}
parenthesis_depth: isize, // ()
bracket_depth: i32, // []
brace_depth: i32, // {}
parenthesis_depth: i32, // ()
}
impl<'s> std::fmt::Debug for OrgSource<'s> {
@@ -77,15 +77,15 @@ impl<'s> OrgSource<'s> {
self.line_number
}
pub fn get_bracket_depth(&self) -> isize {
pub fn get_bracket_depth(&self) -> i32 {
self.bracket_depth
}
pub fn get_brace_depth(&self) -> isize {
pub fn get_brace_depth(&self) -> i32 {
self.brace_depth
}
pub fn get_parenthesis_depth(&self) -> isize {
pub fn get_parenthesis_depth(&self) -> i32 {
self.parenthesis_depth
}
}