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

Method param_name

crates/wit-bindgen/src/rust.rs:339–351  ·  view source on GitHub ↗
(&self, ty: TypeId)

Source from the content-addressed store, hash-verified

337 }
338
339 fn param_name(&self, ty: TypeId) -> String {
340 let info = self.info(ty);
341 let name = self.resolve().types[ty]
342 .name
343 .as_ref()
344 .unwrap()
345 .to_upper_camel_case();
346 if self.uses_two_names(&info) {
347 format!("{name}Param")
348 } else {
349 name
350 }
351 }
352
353 fn result_name(&self, ty: TypeId) -> String {
354 let info = self.info(ty);

Callers 2

tyidMethod · 0.80
modes_ofMethod · 0.80

Implementers 1

lib.rscrates/wit-bindgen/src/lib.rs

Calls 5

infoMethod · 0.80
uses_two_namesMethod · 0.80
unwrapMethod · 0.45
as_refMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected