luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::enums::polarity::Polarity;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct GeneralizationParams {
    pub found_outside_functions: bool,
    pub use_count: usize,
    pub polarity: Polarity,
}

impl Default for GeneralizationParams {
    fn default() -> Self {
        Self {
            found_outside_functions: false,
            use_count: 0,
            polarity: Polarity::None,
        }
    }
}