MCPcopy Create free account
hub / github.com/csskit/csskit / run

Function run

crates/csskit_derives/src/lib.rs:36–42  ·  view source on GitHub ↗
(stream: TokenStream, f: F)

Source from the content-addressed store, hash-verified

34mod test;
35
36fn run<F>(stream: TokenStream, f: F) -> TokenStream
37where
38 F: FnOnce(DeriveInput) -> Result<proc_macro2::TokenStream>,
39{
40 let input = syn::parse::<DeriveInput>(stream).unwrap_or_else(|e| panic!("{e}"));
41 f(input).unwrap_or_else(|e| e.into_compile_error()).into()
42}
43
44#[proc_macro_derive(ToCursors, attributes(to_cursors))]
45pub fn derive_to_cursors(stream: TokenStream) -> TokenStream {

Callers 13

derive_to_cursorsFunction · 0.70
derive_parseFunction · 0.70
derive_peekFunction · 0.70
derive_into_cursorFunction · 0.70
derive_into_spanFunction · 0.70
derive_visitableFunction · 0.70
derive_feature_metadataFunction · 0.70
derive_css_featureFunction · 0.70
derive_semantic_eqFunction · 0.70
runMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected