Syntactic sugar to instantiate an `Expr::Integer` for testing.
(value: i32, line: usize, col: usize)
| 2059 | |
| 2060 | /// Syntactic sugar to instantiate an `Expr::Integer` for testing. |
| 2061 | fn expr_integer(value: i32, line: usize, col: usize) -> Expr { |
| 2062 | Expr::Integer(IntegerSpan { value, pos: LineCol { line, col } }) |
| 2063 | } |
| 2064 | |
| 2065 | /// Syntactic sugar to instantiate an `Expr::Text` for testing. |
| 2066 | fn expr_text<S: Into<String>>(value: S, line: usize, col: usize) -> Expr { |
no outgoing calls