github.com/solo-io/cue@v0.4.7/cue/testdata/export/030.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 raw: true 4 eval: true 5 -- in.cue -- 6 { 7 #Foo: { 8 sgl: #Bar 9 ref: null | #Foo 10 ext: #Bar | null 11 ref: null | #Foo 12 ref2: null | #Foo.sgl 13 ... 14 } 15 #Foo: { 16 "#Foo": 2 17 ... 18 } 19 #Bar: string 20 } 21 -- out/def -- 22 #Foo: { 23 "#Foo": 2 24 sgl: #Bar 25 ref: (null | #Foo) & (null | #Foo) 26 ext: #Bar | null 27 ref2: null | #Foo.sgl 28 ... 29 } 30 #Bar: string 31 -- out/export -- 32 33 -- out/yaml -- 34 {} 35 -- out/json -- 36 {} 37 -- out/compile -- 38 --- in.cue 39 { 40 { 41 #Foo: { 42 sgl: 〈1;#Bar〉 43 ref: (null|〈1;#Foo〉) 44 ext: (〈1;#Bar〉|null) 45 ref: (null|〈1;#Foo〉) 46 ref2: (null|〈1;#Foo〉.sgl) 47 ... 48 } 49 #Foo: { 50 "#Foo": 2 51 ... 52 } 53 #Bar: string 54 } 55 } 56 -- out/eval -- 57 (struct){ 58 #Foo: (#struct){ 59 sgl: (string){ string } 60 ref: ((null|struct)){ |((null){ null }, (#struct){ 61 sgl: (string){ string } 62 ref: (null){ null } 63 ext: ((null|string)){ |((string){ string }, (null){ null }) } 64 ref2: ((null|string)){ |((null){ null }, (string){ string }) } 65 "#Foo": (int){ 2 } 66 }) } 67 ext: ((null|string)){ |((string){ string }, (null){ null }) } 68 ref2: ((null|string)){ |((null){ null }, (string){ string }) } 69 "#Foo": (int){ 2 } 70 } 71 #Bar: (string){ string } 72 }