Skip to main content

parse_unparsed_macro_definitions_only

Function parse_unparsed_macro_definitions_only 

Source
pub(crate) fn parse_unparsed_macro_definitions_only<'src, 'state>(
    source_file_body: &'src str,
    state: &'state mut State<'src>,
) -> Result<Vec<Rich<'src, Token>>, Vec<Rich<'src, Token>>>
where 'src: 'state,
Expand description

Extract macrs defined in source_file_body and record them in state. Return Ok if all macro definitions can be parsed, Err if at least one cannot. In both the success and failure case, return any diagnostics the parsers produced.