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

Method render

crates/csskit_derives/src/parse.rs:230–241  ·  view source on GitHub ↗
(&self, wc: &mut WhereCollector)

Source from the content-addressed store, hash-verified

228
229impl<'a> Plan for SequentialPlan<'a> {
230 fn render(&self, wc: &mut WhereCollector) -> TokenStream {
231 let parse_steps = self.fields.iter().map(|f| f.parse_tokens(wc));
232 let vars = self.fields.iter().map(|f| &f.var);
233 let members = self.members;
234 let constructor = &self.constructor;
235 let post = self.post_parse_steps;
236 quote! {
237 #( #parse_steps )*
238 #post
239 return Ok(#constructor { #(#members: #vars),* });
240 }
241 }
242}
243
244struct MustOccurPlan<'a> {

Callers 10

bodyMethod · 0.80
body_with_hoistedMethod · 0.80
derive_struct_bodyFunction · 0.80
derive_enum_bodyFunction · 0.80
createTimeChartFunction · 0.80
createCompressionChartFunction · 0.80
createThroughputChartFunction · 0.80

Calls 15

unexpected_at_cFunction · 0.85
unexpected_at_nextFunction · 0.85
iterMethod · 0.80
parse_tokensMethod · 0.80
collectMethod · 0.80
atom_match_armMethod · 0.80
parse_normal_tokensMethod · 0.80
unpack_optionMethod · 0.80
is_optionMethod · 0.80
as_refMethod · 0.80
pathMethod · 0.80
bodyMethod · 0.80

Tested by

no test coverage detected