github.com/solo-io/cue@v0.4.7/cue/testdata/definitions/visibility.txtar (about)

     1  -- in.cue --
     2  #foo: {
     3  	name: string
     4  }
     5  foo: #foo & {
     6      // These should all be allowed.
     7      _name: "foo"
     8      _#name: "bar"
     9  
    10      #name: "baz"
    11  }
    12  -- out/eval --
    13  (struct){
    14    #foo: (#struct){
    15      name: (string){ string }
    16    }
    17    foo: (#struct){
    18      name: (string){ string }
    19      _name: (string){ "foo" }
    20      _#name: (string){ "bar" }
    21      #name: (string){ "baz" }
    22    }
    23  }
    24  -- out/compile --
    25  --- in.cue
    26  {
    27    #foo: {
    28      name: string
    29    }
    30    foo: (〈0;#foo〉 & {
    31      _name: "foo"
    32      _#name: "bar"
    33      #name: "baz"
    34    })
    35  }