cuelang.org/go@v0.13.0/cue/testdata/eval/selectors.txtar (about) 1 -- in.cue -- 2 a: 1 3 b: a + 1 4 d: { 5 x: _ 6 y: b + x 7 } 8 e: d & { 9 x: 5 10 } 11 f: { 12 a: "foo-bar": 3 13 b: a."foo-bar" 14 } 15 g: { 16 a: "foo-bar": c: 3 17 b: a."foo-bar".c 18 } 19 -- out/eval/stats -- 20 Leaks: 0 21 Freed: 18 22 Reused: 13 23 Allocs: 5 24 Retain: 0 25 26 Unifications: 18 27 Conjuncts: 27 28 Disjuncts: 18 29 -- out/eval -- 30 (struct){ 31 a: (int){ 1 } 32 b: (int){ 2 } 33 d: (struct){ 34 x: (_){ _ } 35 y: (_|_){ 36 // [incomplete] d.y: non-concrete value _ in operand to +: 37 // ./in.cue:5:5 38 // ./in.cue:4:5 39 } 40 } 41 e: (struct){ 42 x: (int){ 5 } 43 y: (int){ 7 } 44 } 45 f: (struct){ 46 a: (struct){ 47 "foo-bar": (int){ 3 } 48 } 49 b: (int){ 3 } 50 } 51 g: (struct){ 52 a: (struct){ 53 "foo-bar": (struct){ 54 c: (int){ 3 } 55 } 56 } 57 b: (int){ 3 } 58 } 59 } 60 -- out/compile -- 61 --- in.cue 62 { 63 a: 1 64 b: (〈0;a〉 + 1) 65 d: { 66 x: _ 67 y: (〈1;b〉 + 〈0;x〉) 68 } 69 e: (〈0;d〉 & { 70 x: 5 71 }) 72 f: { 73 a: { 74 "foo-bar": 3 75 } 76 b: 〈0;a〉."foo-bar" 77 } 78 g: { 79 a: { 80 "foo-bar": { 81 c: 3 82 } 83 } 84 b: 〈0;a〉."foo-bar".c 85 } 86 }