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
use crate::records::tarjan::Tarjan;
use crate::type_aliases::type_id::TypeId;

impl Tarjan {
    pub fn visit_child_optional_ty<Ty>(&mut self, ty: Option<Ty>)
    where
        Ty: Into<TypeId>,
    {
        if let Some(inner_ty) = ty {
            self.visit_child_type_id(inner_ty.into());
        }
    }
}