cuelang.org/go@v0.10.1/internal/core/export/testdata/selfcontained/errors.txtar (about)

     1  #path: root
     2  
     3  -- in.cue --
     4  root: {
     5  	// comprehensions
     6  	t1: {for p in b let x = c if d {}}
     7  
     8  	t2: e
     9  	t3: f
    10  
    11  	// incomplete
    12  	t4: [1, 2][x]
    13  	t5: m.foo // TODO: do not inline m
    14  	t6: {a: 1}[n.foo.bar]
    15  }
    16  b: _
    17  c: _
    18  d: _
    19  e: {for p in _ {}}
    20  f: {if _ {}}
    21  
    22  x: int
    23  y: "b"
    24  z: string
    25  m: {}
    26  n: {foo: {baz: int}}
    27  -- out/self/default --
    28  // comprehensions
    29  t1: {
    30  	for p in B let x = C if D {}
    31  }
    32  t2: E
    33  t3: F
    34  
    35  // incomplete
    36  t4: [1, 2][X]
    37  t5: {}.foo
    38  t6: {
    39  	a: 1
    40  }[FOO.bar]
    41  
    42  //cue:path: b
    43  let B = _
    44  
    45  //cue:path: c
    46  let C = _
    47  
    48  //cue:path: d
    49  let D = _
    50  
    51  //cue:path: e
    52  let E = {
    53  	for p in _ {}
    54  }
    55  
    56  //cue:path: f
    57  let F = {
    58  	if _ {}
    59  }
    60  
    61  //cue:path: x
    62  let X = int
    63  
    64  //cue:path: n.foo
    65  let FOO = {
    66  	baz: int
    67  }