...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: nested templates in one field
4#evalFull
5-- in.cue --
6a: [A=string]: b: [B=string]: {
7 name: A
8 kind: B
9}
10a: "A": b: "B": _
11a: "C": b: "D": _
12a: "EE": b: "FF": {c: "bar"}
13-- out/def --
14a: {
15 {[A=string]: {
16 b: {
17 [B=string]: {
18 name: A, kind: B
19 }
20 }
21 }}
22 A: {
23 b: {
24 {[B=string]: {
25 name: "A", kind: B
26 }}
27 B: {
28 name: "A"
29 kind: "B"
30 }
31 }
32 }
33 C: {
34 b: {
35 {[B=string]: {
36 name: "C", kind: B
37 }}
38 D: {
39 name: "C"
40 kind: "D"
41 }
42 }
43 }
44 EE: {
45 b: {
46 {[B=string]: {
47 name: "EE", kind: B
48 }}
49 FF: {
50 name: "EE"
51 kind: "FF"
52 c: "bar"
53 }
54 }
55 }
56}
57-- out/export --
58a: {
59 A: {
60 b: {
61 B: {
62 name: "A"
63 kind: "B"
64 }
65 }
66 }
67 C: {
68 b: {
69 D: {
70 name: "C"
71 kind: "D"
72 }
73 }
74 }
75 EE: {
76 b: {
77 FF: {
78 name: "EE"
79 kind: "FF"
80 c: "bar"
81 }
82 }
83 }
84}
85-- out/yaml --
86a:
87 A:
88 b:
89 B:
90 name: A
91 kind: B
92 C:
93 b:
94 D:
95 name: C
96 kind: D
97 EE:
98 b:
99 FF:
100 name: EE
101 kind: FF
102 c: bar
103-- out/json --
104{"a":{"A":{"b":{"B":{"name":"A","kind":"B"}}},"C":{"b":{"D":{"name":"C","kind":"D"}}},"EE":{"b":{"FF":{"name":"EE","kind":"FF","c":"bar"}}}}}
105-- out/legacy-debug --
106<0>{a: <1>{[]: <2>(A: string)-><3>{b: <4>{[]: <5>(B: string)-><6>{name: <2>.A, kind: <5>.B}, }}, A: <7>{b: <8>{[]: <9>(B: string)-><10>{name: <11>.A, kind: <9>.B}, B: <12>{name: "A", kind: "B"}}}, C: <13>{b: <14>{[]: <15>(B: string)-><16>{name: <17>.A, kind: <15>.B}, D: <18>{name: "C", kind: "D"}}}, EE: <19>{b: <20>{[]: <21>(B: string)-><22>{name: <23>.A, kind: <21>.B}, FF: <24>{name: "EE", kind: "FF", c: "bar"}}}}}
107-- out/compile --
108--- in.cue
109{
110 a: {
111 [string]: {
112 b: {
113 [string]: {
114 name: 〈3;-〉
115 kind: 〈1;-〉
116 }
117 }
118 }
119 }
120 a: {
121 A: {
122 b: {
123 B: _
124 }
125 }
126 }
127 a: {
128 C: {
129 b: {
130 D: _
131 }
132 }
133 }
134 a: {
135 EE: {
136 b: {
137 FF: {
138 c: "bar"
139 }
140 }
141 }
142 }
143}
144-- out/eval/stats --
145Leaks: 0
146Freed: 18
147Reused: 12
148Allocs: 6
149Retain: 0
150
151Unifications: 18
152Conjuncts: 30
153Disjuncts: 18
154-- out/eval --
155(struct){
156 a: (struct){
157 A: (struct){
158 b: (struct){
159 B: (struct){
160 name: (string){ "A" }
161 kind: (string){ "B" }
162 }
163 }
164 }
165 C: (struct){
166 b: (struct){
167 D: (struct){
168 name: (string){ "C" }
169 kind: (string){ "D" }
170 }
171 }
172 }
173 EE: (struct){
174 b: (struct){
175 FF: (struct){
176 c: (string){ "bar" }
177 name: (string){ "EE" }
178 kind: (string){ "FF" }
179 }
180 }
181 }
182 }
183}
View as plain text