github.com/solo-io/cue@v0.4.7/cue/testdata/fulleval/017_resolutions_in_struct_comprehension_keys.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: resolutions in struct comprehension keys
     4  #evalFull
     5  -- in.cue --
     6  a: {for _, b in ["c"] {"\(b+".")": "a"}}
     7  -- out/def --
     8  a: {
     9  	"c.": "a"
    10  }
    11  -- out/export --
    12  a: {
    13  	"c.": "a"
    14  }
    15  -- out/yaml --
    16  a:
    17    c.: a
    18  -- out/json --
    19  {"a":{"c.":"a"}}
    20  -- out/legacy-debug --
    21  <0>{a: <1>{"c.": "a"}}
    22  -- out/compile --
    23  --- in.cue
    24  {
    25    a: {
    26      for _, b in [
    27        "c",
    28      ] {
    29        "\((〈1;b〉 + "."))": "a"
    30      }
    31    }
    32  }
    33  -- out/eval --
    34  (struct){
    35    a: (struct){
    36      "c.": (string){ "a" }
    37    }
    38  }