luaur-analyze-cli 0.1.1

Standalone Luau type-checker CLI (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::records::cli_file_resolver::CliFileResolver;
use alloc::string::String;
use alloc::string::ToString;

#[allow(non_snake_case)]
pub unsafe fn cli_file_resolver_get_human_readable_module_name(
    _this: *const CliFileResolver,
    name: &alloc::string::String,
) -> String {
    if name == "-" {
        "stdin".to_string()
    } else {
        name.clone()
    }
}