fn parse_external_arg(
    registry: &dyn SignatureRegistry,
    lite_arg: &Spanned<String>,
) -> (SpannedExpression, Option<ParseError>) {
    if lite_arg.item.starts_with('$') {
        return parse_dollar_expr(&lite_arg, registry);
    }

    if lite_arg.item.starts_with('`') && lite_arg.item.len() > 1 && lite_arg.item.ends_with('`') {
        // This is an interpolated string
        parse_interpolated_string(registry, &lite_arg)
    } else {
        (
            SpannedExpression::new(Expression::string(lite_arg.item.clone()), lite_arg.span),
            None,
        )
    }
}
/// Parses the given argument using the shape as a guide for how to correctly parse the argument
Parses the given argument using the shape as a guide for how to correctly parse the argument
Parses the given argument using the shape as a guide for how to correctly parse the argument
fn parse_external_arg(
    registry: &dyn SignatureRegistry,
    lite_arg: &Spanned<String>,
) -> (SpannedExpression, Option<ParseError>) {
    if lite_arg.item.starts_with('$') {
        return parse_dollar_expr(&lite_arg, registry);
    }
    if lite_arg.item.starts_with('`') && lite_arg.item.len() > 1 && lite_arg.item.ends_with('`') {
        // This is an interpolated string
        parse_interpolated_string(registry, &lite_arg)
    } else {
        (
            SpannedExpression::new(Expression::string(lite_arg.item.clone()), lite_arg.span),
            None,
        )
    }
}
fn parse_external_arg ( registry : & dyn SignatureRegistry , lite_arg : & Spanned < String > , ) -> ( SpannedExpression , Option < ParseError > ) { if lite_arg . item . starts_with ( '$' ) { return parse_dollar_expr ( & lite_arg , registry ) ; } if lite_arg . item . starts_with ( '`' ) && lite_arg . item . len ( ) > 1 && lite_arg . item . ends_with ( '`' ) { // This is an interpolated string parse_interpolated_string ( registry , & lite_arg ) } else { ( SpannedExpression :: new ( Expression :: string ( lite_arg . item . clone ( ) ) , lite_arg . span ) , None , ) } }
Parses the given argument using the shape as a guide for how to correctly parse the argument
Parses the given argument using the shape as a guide for how to correctly parse the argument
registry
&dyn SignatureRegistry
lite_arg
&Spanned<String>
registry
&dyn SignatureRegistry
lite_arg
&Spanned<String>