luaur_analysis/methods/
property_readonly.rs1use crate::records::property_type::Property;
2use crate::type_aliases::type_id::TypeId;
3
4impl Property {
5 pub fn readonly(ty: TypeId) -> Self {
6 Property {
7 read_ty: Some(ty),
8 write_ty: None,
9 ..Default::default()
10 }
11 }
12}