github.com/solo-io/cue@v0.4.7/cue/testdata/eval/discontinuous.txtar (about) 1 This test tests a case where a child node needs to be evaluated 2 before evaluating a parent has completed. 3 4 -- in.cue -- 5 a: [ for c in foo.bar.baz { 6 c 7 }] 8 9 a: [{name: "http"}] 10 11 foo: { 12 x.D 13 14 bar: baz: [{port: 8080}] 15 } 16 17 x: { 18 D: bar: DSpec 19 DSpec: {} 20 } 21 -- out/compile -- 22 --- in.cue 23 { 24 a: [ 25 for _, c in 〈0;foo〉.bar.baz { 26 〈1;c〉 27 }, 28 ] 29 a: [ 30 { 31 name: "http" 32 }, 33 ] 34 foo: { 35 〈1;x〉.D 36 bar: { 37 baz: [ 38 { 39 port: 8080 40 }, 41 ] 42 } 43 } 44 x: { 45 D: { 46 bar: 〈1;DSpec〉 47 } 48 DSpec: {} 49 } 50 } 51 -- out/eval -- 52 (struct){ 53 a: (#list){ 54 0: (struct){ 55 port: (int){ 8080 } 56 name: (string){ "http" } 57 } 58 } 59 foo: (struct){ 60 bar: (struct){ 61 baz: (#list){ 62 0: (struct){ 63 port: (int){ 8080 } 64 } 65 } 66 } 67 } 68 x: (struct){ 69 D: (struct){ 70 bar: (struct){ 71 } 72 } 73 DSpec: (struct){ 74 } 75 } 76 }