MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / is_primative_list

Method is_primative_list

crates/csharp/src/interface.rs:1173–1187  ·  view source on GitHub ↗
(&mut self, ty: &Type)

Source from the content-addressed store, hash-verified

1171 }
1172
1173 fn is_primative_list(&mut self, ty: &Type) -> bool {
1174 match ty {
1175 Type::Id(id) => {
1176 let ty = &self.resolve.types[*id];
1177 match &ty.kind {
1178 TypeDefKind::Type(ty) => self.is_primative_list(ty),
1179 TypeDefKind::List(ty) if crate::world_generator::is_primitive(ty) => {
1180 return true;
1181 }
1182 _ => false,
1183 }
1184 }
1185 _ => false,
1186 }
1187 }
1188
1189 pub(crate) fn name_with_qualifier(
1190 &mut self,

Callers 1

importMethod · 0.80

Calls 1

is_primitiveFunction · 0.85

Tested by

no test coverage detected