Parser
Modify the dummy_expr to use Path. Most Infix Parsers do not need a specific `LHS`, but index does, so we modify it here instead of create a `dummy_path_expr` for the tests in Index
@@ -129,8 +129,8 @@ pub(crate) fn test_parse(src: &str) -> Parser {
pub(crate) fn dummy_expr() -> Expression {
use crate::parser::prefix_parser::PrefixParser;
const SRC: &'static str = r#"
- 5;
+ foo;
"#;
let mut parser = test_parse(SRC);
- PrefixParser::Literal.parse(&mut parser).unwrap()
+ PrefixParser::Path.parse(&mut parser).unwrap()
}
