cuelang.org/go@v0.10.1/internal/core/dep/testdata/let2.txtar (about)

     1  -- in.cue --
     2  v: w: u: d: 0
     3  
     4  let X1 = {c: v}.c.w
     5  let X2 = {c: {out: v}.out}.c.w
     6  let X3 = {c: {out: v}.out}.c
     7  
     8  let Y1 = {c: v}.c
     9  let Y2 = {c: {out: v}.out}.c
    10  
    11  a: b: {
    12  	// all result in v.w
    13  	x1: X1
    14  	x2: X2
    15  	x3: X3.w
    16  
    17  	// all result in v
    18  	// TODO: fix this for "All" mode. This can be done by getting rid of the
    19  	// recurse flag and allowing the API to directly access the expressions
    20  	// that need to be substituted.
    21  	y1: Y1
    22  	y2: Y2
    23  }
    24  -- out/dependencies/field --
    25  line  reference    path of resulting vertex
    26  -- out/dependencies/all --
    27  line  reference    path of resulting vertex
    28  12:   X1        => v.w
    29  13:   X2        => v.w
    30  14:   X3.w      => v.w
    31  7:    v         => v
    32  8:    v         => v
    33  -- out/dependencies/dynamic --
    34  line  reference    path of resulting vertex
    35  12:   X1        => v.w
    36  13:   X2        => v.w
    37  14:   X3.w      => v.w
    38  20:   Y1        => v
    39  21:   Y2        => v