MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / ty

Method ty

cranelift/isle/isle/src/codegen.rs:610–618  ·  view source on GitHub ↗
(&self, typeid: TypeId)

Source from the content-addressed store, hash-verified

608 }
609
610 fn ty(&self, typeid: TypeId) -> (bool, String) {
611 let ty = &self.typeenv.types[typeid.index()];
612 let name = ty.name(self.typeenv);
613 let is_ref = match ty {
614 Type::Builtin(_) | Type::Primitive(..) => false,
615 Type::Enum { .. } | Type::Struct { .. } => true,
616 };
617 (is_ref, String::from(name))
618 }
619
620 fn validate_block(ret_kind: ReturnKind, block: &Block) -> Nested<'_> {
621 if !matches!(ret_kind, ReturnKind::Iterator) {

Callers 3

emit_exprMethod · 0.45
emit_fieldsMethod · 0.45

Calls 3

fromFunction · 0.85
indexMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected