Skip to main content

luaur_analysis/records/
unknown_require.rs

1use alloc::string::String;
2
3#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4pub struct UnknownRequire {
5    pub(crate) module_path: String,
6}
7
8impl UnknownRequire {
9    pub const fn new(module_path: String) -> Self {
10        Self { module_path }
11    }
12}
13
14#[allow(non_snake_case)]
15impl UnknownRequire {
16    pub fn modulePath(&self) -> &str {
17        &self.module_path
18    }
19}