(name: &str)
| 1752 | } |
| 1753 | |
| 1754 | fn to_upper_camel_case(name: &str) -> String { |
| 1755 | match name { |
| 1756 | // The name "Guest" is reserved for traits generated by exported |
| 1757 | // interfaces, so remap types defined in wit to something else. |
| 1758 | "guest" => "Guest_".to_string(), |
| 1759 | s => s.to_upper_camel_case(), |
| 1760 | } |
| 1761 | } |
| 1762 | |
| 1763 | fn wasm_type(ty: WasmType) -> &'static str { |
| 1764 | match ty { |
no test coverage detected