luaur-analysis 0.1.0

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use luaur_ast::records::ast_expr::AstExpr;
use luaur_ast::records::ast_expr_instantiate::AstExprInstantiate;
use luaur_common::LUAU_ASSERT;

use crate::functions::similar::similar;

pub fn case_ast_expr_instantiate() {
    // This function is a stub for the overloaded CASE handler for AstExprInstantiate.
    // The actual implementation logic resides in the caller that dispatches to this handler.
    // The source snippet shows: return similar(le->expr, re->expr);
    // Since this is a stub for the CASE handler and the actual comparison operands (le, re)
    // are provided by the caller context (not available here), we cannot implement the full logic.
    // The real implementation would be part of a larger function that handles binary comparisons.
    LUAU_ASSERT!(false);
}