luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::records::lint_comparison_precedence::LintComparisonPrecedence;
use luaur_ast::records::ast_expr_binary::AstExprBinary_Op;

impl LintComparisonPrecedence {
    pub fn is_equality(&self, op: AstExprBinary_Op) -> bool {
        matches!(
            op,
            AstExprBinary_Op::CompareNe | AstExprBinary_Op::CompareEq
        )
    }
}