0 issues 1 contributor 4 branches 0 releases
Additions: 8 Deletions: 1 View patch
1 // eprintln('> gen_assert_single_expr typ: $typ | expr: $expr | typeof(expr): ${typeof(expr)}')
2 unknown_value := '*unknown value*'
3 match expr {
4- ast.CastExpr, ast.IfExpr, ast.IndexExpr, ast.MatchExpr {
5+ ast.CastExpr, ast.IfExpr, ast.MatchExpr {
6 g.write(ctoslit(unknown_value))
7 }
8+ ast.IndexExpr {
9+ if expr.index is ast.RangeExpr {
10+ g.write(ctoslit(unknown_value))
11+ } else {
12+ g.gen_expr_to_string(expr, typ)
13+ }
14+ }
15 ast.PrefixExpr {
16 if expr.right is ast.CastExpr {
17 // TODO: remove this check;
18