Skip to main content

luaur_analysis/methods/
unifier_report_error_unifier.rs

1use crate::records::type_error::TypeError;
2use crate::records::unifier::Unifier;
3use crate::type_aliases::type_error_data::TypeErrorData;
4use luaur_ast::records::location::Location;
5
6impl Unifier {
7    pub fn report_error_location_type_error_data(
8        &mut self,
9        location: Location,
10        data: TypeErrorData,
11    ) {
12        let err = TypeError::type_error_location_type_error_data(location, data);
13        self.errors.push(err);
14        self.failure = true;
15    }
16}