/// Parse built-in arguments.
Parse built-in arguments.
Parse built - in arguments .
pub(crate) fn args(
        &self,
        storage: &Storage,
        source: &Source,
    ) -> Result<BuiltInArgs, ParseError> {
        let mut out = BuiltInArgs::default();
        if let Some(args) = &self.args {
            for (ident, _) in args {
                match ident.resolve(storage, source)?.as_ref() {
                    "literal" => {
                        out.literal = true;
                    }
                    _ => {
                        return Err(ParseError::msg(ident, "unsupported attribute"));
                    }
                }
            }
        }
        Ok(out)
    }
pub ( crate ) fn args ( & self , storage : & Storage , source : & Source , ) -> Result < BuiltInArgs , ParseError > { let mut out = BuiltInArgs :: default ( ) ; if let Some ( args ) = & self . args { for ( ident , _ ) in args { match ident . resolve ( storage , source ) ? . as_ref ( ) { " " => { out . literal = true ; } _ => { return Err ( ParseError :: msg ( ident , " " ) ) ; } } } } Ok ( out ) }
Parse built-in arguments.
Parse built - in arguments .
&self
storage
&Storage
source
&Source