cuelang.org/go@v0.13.0/tools/trim/testdata/51.txtar (about)

     1  Demonstration of dependencies of references. Within b.c we find the
     2  reference to x; we resolve that to a vertex which contains conjuncts
     3  from line 1 and and line 4. We spot that line 4 is in the same (or
     4  ancestor) lexical scope as b.c, and so we ensure that if line 5
     5  survives, then line 4 must too, otherwise c: x will reference an
     6  unknown field.
     7  
     8  See also 53, 54, and 55.
     9  
    10  -- a.cue --
    11  a: x: 5
    12  b: {
    13  	a
    14  	x: int
    15  	c: x
    16  }
    17  -- out/trim --
    18  == a.cue
    19  a: x: 5
    20  b: {
    21  	a
    22  	x: int
    23  	c: x
    24  }