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
use crate::records::type_error::TypeError;
use crate::records::unifier::Unifier;
use crate::type_aliases::type_error_data::TypeErrorData;
use luaur_ast::records::location::Location;

impl Unifier {
    pub fn report_error_location_type_error_data(
        &mut self,
        location: Location,
        data: TypeErrorData,
    ) {
        let err = TypeError::type_error_location_type_error_data(location, data);
        self.errors.push(err);
        self.failure = true;
    }
}