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

Function lower

crates/component-macro/src/lib.rs:24–31  ·  view source on GitHub ↗
(input: proc_macro::TokenStream)

Source from the content-addressed store, hash-verified

22
23#[proc_macro_derive(Lower, attributes(component))]
24pub fn lower(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
25 component::expand(
26 &component::LowerExpander,
27 &parse_macro_input!(input as DeriveInput),
28 )
29 .unwrap_or_else(Error::into_compile_error)
30 .into()
31}
32
33#[proc_macro_derive(ComponentType, attributes(component))]
34pub fn component_type(input: proc_macro::TokenStream) -> proc_macro::TokenStream {

Callers 1

emitMethod · 0.50

Calls 1

expandFunction · 0.70

Tested by

no test coverage detected