luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::enums::status::Status;
use crate::records::lint_unreachable_code::LintUnreachableCode;

impl LintUnreachableCode {
    pub fn get_reason(&self, status: Status) -> &str {
        match status {
            Status::Continue => "continue",
            Status::Break => "break",
            Status::Return => "return",
            Status::Error => "error",
            _ => "unknown",
        }
    }
}