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

Function expr_symbol

core/src/parser.rs:2071–2073  ·  view source on GitHub ↗

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

(vref: VarRef, line: usize, col: usize)

Source from the content-addressed store, hash-verified

2069
2070 /// Syntactic sugar to instantiate an `Expr::Symbol` for testing.
2071 fn expr_symbol(vref: VarRef, line: usize, col: usize) -> Expr {
2072 Expr::Symbol(SymbolSpan { vref, pos: LineCol { line, col } })
2073 }
2074
2075 #[test]
2076 fn test_varref_to_unannotated_string() {

Callers 10

test_assignmentsFunction · 0.85
test_expr_symbolsFunction · 0.85
test_expr_numeric_signsFunction · 0.85
test_expr_errorsFunction · 0.85
test_for_emptyFunction · 0.85
test_for_incrementingFunction · 0.85

Calls

no outgoing calls

Tested by 10

test_assignmentsFunction · 0.68
test_expr_symbolsFunction · 0.68
test_expr_numeric_signsFunction · 0.68
test_expr_errorsFunction · 0.68
test_for_emptyFunction · 0.68
test_for_incrementingFunction · 0.68