...

Text file src/cuelang.org/go/cue/testdata/cycle/patterns.txtar

Documentation: cuelang.org/go/cue/testdata/cycle

     1Lots of cycle-reference goodness.
     2
     3-- in.cue --
     4[!~"^[.]"]: c
     5a:          b
     6b: [string]: int
     7c: a:        int
     8[string]: c
     9a:        b
    10b: [string]: int
    11c: a:        int
    12-- out/eval/stats --
    13Leaks:  0
    14Freed:  7
    15Reused: 2
    16Allocs: 5
    17Retain: 2
    18
    19Unifications: 7
    20Conjuncts:    59
    21Disjuncts:    9
    22-- out/eval --
    23(struct){
    24  a: (struct){
    25    a: (int){ int }
    26  }
    27  b: (struct){
    28    a: (int){ int }
    29  }
    30  c: (struct){
    31    a: (int){ int }
    32  }
    33}
    34-- out/compile --
    35--- in.cue
    36{
    37  [!~"^[.]"]: 〈0;c〉
    38  a: 〈0;b〉
    39  b: {
    40    [string]: int
    41  }
    42  c: {
    43    a: int
    44  }
    45  [string]: 〈0;c〉
    46  a: 〈0;b〉
    47  b: {
    48    [string]: int
    49  }
    50  c: {
    51    a: int
    52  }
    53}

View as plain text