luaur-web 0.1.0

WebAssembly bindings to run and type-check Luau in the browser (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `DemoFileResolver::getHumanReadableModuleName` (`CLI/src/Web.cpp:35-38`).
//!
//! ```cpp
//! std::string getHumanReadableModuleName(const Luau::ModuleName& name) const override
//! {
//!     return name;
//! }
//! ```

use crate::records::demo_file_resolver::DemoFileResolver;
use alloc::string::String;
use luaur_analysis::type_aliases::module_name_file_resolver::ModuleName;

impl DemoFileResolver {
    pub fn get_human_readable_module_name(&self, name: &ModuleName) -> String {
        name.clone()
    }
}