MCPcopy Index your code
hub / github.com/endbasic/endbasic / expr_integer

Function expr_integer

core/src/parser.rs:2061–2063  ·  view source on GitHub ↗

Syntactic sugar to instantiate an `Expr::Integer` for testing.

(value: i32, line: usize, col: usize)

Source from the content-addressed store, hash-verified

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 {

Callers 15

test_array_assignmentsFunction · 0.85
test_assignmentsFunction · 0.85
test_expr_literalsFunction · 0.85
test_expr_parensFunction · 0.85
test_expr_arith_opsFunction · 0.85
test_expr_rel_opsFunction · 0.85
test_expr_logical_opsFunction · 0.85
test_expr_bitwise_opsFunction · 0.85
test_expr_op_prioritiesFunction · 0.85
test_expr_numeric_signsFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_array_assignmentsFunction · 0.68
test_assignmentsFunction · 0.68
test_expr_literalsFunction · 0.68
test_expr_parensFunction · 0.68
test_expr_arith_opsFunction · 0.68
test_expr_rel_opsFunction · 0.68
test_expr_logical_opsFunction · 0.68
test_expr_bitwise_opsFunction · 0.68
test_expr_op_prioritiesFunction · 0.68
test_expr_numeric_signsFunction · 0.68