pub fn collect_definitions<T>(
arena: &AstArena,
node: u32,
name: &str,
parse: &dyn Fn(&AstArena, u32) -> Option<T>,
definitions: &mut JsMap<Vec<T>>,
invalid: &mut Vec<u32>,
)Expand description
collect the mixin or custom function definitions of a stylesheet, a conditional group rule or a cascade layer.
the definitions that are not valid are collected in invalid