Skip to main content

luaur_analysis/functions/
make_property.rs

1use crate::records::property_type_path::Property;
2use crate::type_aliases::type_id::TypeId;
3use alloc::string::String;
4
5pub fn make_property(ty: TypeId, documentation_symbol: Option<String>) -> Property {
6    Property {
7        name: documentation_symbol.unwrap_or_default(),
8        is_read: true,
9    }
10}