shuck-formatter 0.0.42

Shell script formatter with configurable style options
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rustc_hash::FxHashSet as HashSet;

use super::FactSpan;

#[derive(Debug, Clone, Default)]
pub(super) struct BranchFacts {
    pub(super) inline_group_sequences: HashSet<FactSpan>,
    pub(super) inline_case_item_bodies: HashSet<FactSpan>,
}

impl BranchFacts {
    #[cfg(feature = "benchmarking")]
    pub(super) fn len(&self) -> usize {
        self.inline_group_sequences.len() + self.inline_case_item_bodies.len()
    }
}