...
1-- in.cue --
2src: [{foo: 3}]
3
4for k, v in src
5let y = v.foo
6if y > 3 {
7 x: [k, v, y]
8}
9-- out/resolve/in --
103[src]: Scope: 0[<nil>] Node: 0[]
116[foo]: Scope: 0[<nil>] Node: 0[]
128[k]: Scope: 0[<nil>] Node: 0[]
139[v]: Scope: 0[<nil>] Node: 0[]
1410[src]: Scope: 1[*ast.File] Node: 0[[{foo: 3}]]
1512[y]: Scope: 0[<nil>] Node: 0[]
1613[v]: Scope: 7[*ast.ForClause] Node: 9[v]
1714[foo]: Scope: 0[<nil>] Node: 0[]
1815[y]: Scope: 11[*ast.LetClause] Node: 12[y]
1918[x]: Scope: 0[<nil>] Node: 0[]
2019[k]: Scope: 7[*ast.ForClause] Node: 8[k]
2120[v]: Scope: 7[*ast.ForClause] Node: 9[v]
2221[y]: Scope: 11[*ast.LetClause] Node: 12[y]
23-- issue946.cue --
24x: {for a in a {}}
25y: {for aa in a {}}
26-- out/resolve/issue946 --
273[x]: Scope: 0[<nil>] Node: 0[]
286[a]: Scope: 0[<nil>] Node: 0[]
297[a]: Scope: 0[<nil>] Node: 0[]
3010[y]: Scope: 0[<nil>] Node: 0[]
3113[aa]: Scope: 0[<nil>] Node: 0[]
3214[a]: Scope: 0[<nil>] Node: 0[]
View as plain text