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

Method param_name

crates/rust/src/interface.rs:2445–2453  ·  view source on GitHub ↗
(&self, ty: TypeId)

Source from the content-addressed store, hash-verified

2443 }
2444
2445 fn param_name(&self, ty: TypeId) -> String {
2446 let info = self.info(ty);
2447 let name = to_upper_camel_case(self.resolve.types[ty].name.as_ref().unwrap());
2448 if self.uses_two_names(&info) {
2449 format!("{name}Param")
2450 } else {
2451 name
2452 }
2453 }
2454
2455 fn result_name(&self, ty: TypeId) -> String {
2456 let info = self.info(ty);

Callers 2

type_pathMethod · 0.80
modes_ofMethod · 0.80

Calls 3

to_upper_camel_caseFunction · 0.85
infoMethod · 0.80
uses_two_namesMethod · 0.80

Tested by

no test coverage detected