cuelang.org/go@v0.10.1/cue/testdata/fulleval/006_referencing_field_in_field_comprehension.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: referencing field in field comprehension 4 #evalFull 5 -- in.cue -- 6 a: {b: c: 4} 7 a: { 8 b: d: 5 9 for k, v in b { 10 "\(k)": v 11 } 12 } 13 -- out/def -- 14 a: { 15 b: { 16 c: 4 17 d: 5 18 } 19 c: 4 20 d: 5 21 } 22 -- out/export -- 23 a: { 24 b: { 25 c: 4 26 d: 5 27 } 28 c: 4 29 d: 5 30 } 31 -- out/yaml -- 32 a: 33 b: 34 c: 4 35 d: 5 36 c: 4 37 d: 5 38 -- out/json -- 39 {"a":{"b":{"c":4,"d":5},"c":4,"d":5}} 40 -- out/legacy-debug -- 41 <0>{a: <1>{b: <2>{c: 4, d: 5}, c: 4, d: 5}} 42 -- out/compile -- 43 --- in.cue 44 { 45 a: { 46 b: { 47 c: 4 48 } 49 } 50 a: { 51 b: { 52 d: 5 53 } 54 for k, v in 〈0;b〉 { 55 "\(〈1;k〉)": 〈1;v〉 56 } 57 } 58 } 59 -- out/eval/stats -- 60 Leaks: 0 61 Freed: 7 62 Reused: 3 63 Allocs: 4 64 Retain: 1 65 66 Unifications: 7 67 Conjuncts: 13 68 Disjuncts: 8 69 -- out/eval -- 70 (struct){ 71 a: (struct){ 72 b: (struct){ 73 c: (int){ 4 } 74 d: (int){ 5 } 75 } 76 c: (int){ 4 } 77 d: (int){ 5 } 78 } 79 }