Add many lua annotation
This commit is contained in:
parent
240e0111bf
commit
9338be7eb0
@ -9,6 +9,7 @@ use std::{
|
||||
#[allow(non_camel_case_types)]
|
||||
pub mod stub_types {
|
||||
pub struct any;
|
||||
pub struct many;
|
||||
pub struct nil;
|
||||
pub type boolean = bool;
|
||||
pub struct lightuserdata;
|
||||
|
@ -656,6 +656,7 @@ fn stub_lua_type(ty: &Type) -> Result<Type> {
|
||||
} else {
|
||||
match ty_name(ty)?.to_string().as_str() {
|
||||
"any" => quote_spanned!(span => any),
|
||||
"many" => quote_spanned!(span => many),
|
||||
"nil" => quote_spanned!(span => nil),
|
||||
"boolean" => quote_spanned!(span => boolean),
|
||||
"lightuserdata" => quote_spanned!(span => lightuserdata),
|
||||
|
Loading…
x
Reference in New Issue
Block a user