| 1 |
-- in.cue -- |
| 2 |
[X=string]: name: X |
| 3 |
a: X |
| 4 |
|
| 5 |
Z=[string]: {x: string, y: Z.x} |
| 6 |
c: Z |
| 7 |
|
| 8 |
// `_` should not resolve. |
| 9 |
_: 1 |
| 10 |
x: _ |
| 11 |
|
| 12 |
for _ in [1] {a: _} |
| 13 |
-- out/resolve/in -- |
| 14 |
4[X]: Scope: 0[<nil>] Node: 0[] |
| 15 |
5[string]: Scope: 0[<nil>] Node: 0[] |
| 16 |
8[name]: Scope: 0[<nil>] Node: 0[] |
| 17 |
9[X]: Scope: 2[*ast.Field] Node: 5[string] |
| 18 |
11[a]: Scope: 0[<nil>] Node: 0[] |
| 19 |
12[X]: Scope: 0[<nil>] Node: 0[] |
| 20 |
15[Z]: Scope: 0[<nil>] Node: 0[] |
| 21 |
16[string]: Scope: 0[<nil>] Node: 0[] |
| 22 |
19[x]: Scope: 0[<nil>] Node: 0[] |
| 23 |
20[string]: Scope: 0[<nil>] Node: 0[] |
| 24 |
22[y]: Scope: 0[<nil>] Node: 0[] |
| 25 |
23[Z]: Scope: 13[*ast.Field] Node: 13[Z=[string]: {x: string, y: Z.x}] |
| 26 |
24[x]: Scope: 0[<nil>] Node: 0[] |
| 27 |
26[c]: Scope: 0[<nil>] Node: 0[] |
| 28 |
27[Z]: Scope: 0[<nil>] Node: 0[] |
| 29 |
29[_]: Scope: 0[<nil>] Node: 0[] |
| 30 |
31[x]: Scope: 0[<nil>] Node: 0[] |
| 31 |
32[_]: Scope: 0[<nil>] Node: 0[] |
| 32 |
34[_]: Scope: 0[<nil>] Node: 0[] |
| 33 |
37[a]: Scope: 0[<nil>] Node: 0[] |
| 34 |
38[_]: Scope: 0[<nil>] Node: 0[] |