cuelang.org/go@v0.13.0/cue/testdata/export/006.txtar (about) 1 -- in.cue -- 2 {a: {b: 2.0, s: "abc"}, b: a.b, c: a.c, d: a["d"], e: a.t[2:3]} 3 -- out/def -- 4 a: { 5 b: 2.0 6 s: "abc" 7 } 8 b: 2.0 9 c: a.c 10 d: a["d"] 11 e: a.t[2:3] 12 -- out/compile -- 13 --- in.cue 14 { 15 { 16 a: { 17 b: 2.0 18 s: "abc" 19 } 20 b: 〈0;a〉.b 21 c: 〈0;a〉.c 22 d: 〈0;a〉["d"] 23 e: 〈0;a〉.t[2:3] 24 } 25 } 26 -- out/eval/stats -- 27 Leaks: 0 28 Freed: 8 29 Reused: 5 30 Allocs: 3 31 Retain: 0 32 33 Unifications: 8 34 Conjuncts: 14 35 Disjuncts: 8 36 -- out/eval -- 37 (struct){ 38 a: (struct){ 39 b: (float){ 2.0 } 40 s: (string){ "abc" } 41 } 42 b: (float){ 2.0 } 43 c: (_|_){ 44 // [incomplete] c: undefined field: c: 45 // ./in.cue:1:38 46 } 47 d: (_|_){ 48 // [incomplete] d: undefined field: d: 49 // ./in.cue:1:46 50 } 51 e: (_|_){ 52 // [incomplete] e: undefined field: t: 53 // ./in.cue:1:57 54 } 55 }