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

Function expr_text

core/src/parser.rs:2066–2068  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

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 {
2067 Expr::Text(TextSpan { value: value.into(), pos: LineCol { line, col } })
2068 }
2069
2070 /// Syntactic sugar to instantiate an `Expr::Symbol` for testing.
2071 fn expr_symbol(vref: VarRef, line: usize, col: usize) -> Expr {

Callers 4

test_array_assignmentsFunction · 0.85
test_assignmentsFunction · 0.85
test_expr_literalsFunction · 0.85
test_expr_op_prioritiesFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_array_assignmentsFunction · 0.68
test_assignmentsFunction · 0.68
test_expr_literalsFunction · 0.68
test_expr_op_prioritiesFunction · 0.68