Debian Codegraph @

internal/core/dep/testdata/let2.txtar

raw
1 # TODO:
2 # out/dependencies/all: origin should ideally be Let reference not v
3
4
5 -- in.cue --
6 v: w: u: d: 0
7
8 let X1 = {c: v}.c.w
9 let X2 = {c: {out: v}.out}.c.w
10 let X3 = {c: {out: v}.out}.c
11
12 let Y1 = {c: v}.c
13 let Y2 = {c: {out: v}.out}.c
14
15 a: b: {
16 // all result in v.w
17 x1: X1
18 x2: X2
19 x3: X3.w
20
21 // all result in v
22 // TODO: fix this for "All" mode. This can be done by getting rid of the
23 // recurse flag and allowing the API to directly access the expressions
24 // that need to be substituted.
25 y1: Y1
26 y2: Y2
27 }
28 -- out/dependencies/field --
29 line reference path of resulting vertex
30 -- out/dependencies-v3/all --
31 line reference path of resulting vertex
32 3: {c: v}.c.w => v.w
33 4: {c: {out: v}.out}.c.w => v.w
34 14: X3.w => v.w
35 7: v => v
36 8: v => v
37 -- diff/-out/dependencies-v3/all<==>+out/dependencies/all --
38 diff old new
39 --- old
40 +++ new
41 @@ -1,6 +1,6 @@
42 -line reference path of resulting vertex
43 -12: X1 => v.w
44 -13: X2 => v.w
45 -14: X3.w => v.w
46 -7: v => v
47 -8: v => v
48 +line reference path of resulting vertex
49 +3: {c: v}.c.w => v.w
50 +4: {c: {out: v}.out}.c.w => v.w
51 +14: X3.w => v.w
52 +7: v => v
53 +8: v => v
54 -- out/dependencies/all --
55 line reference path of resulting vertex
56 12: X1 => v.w
57 13: X2 => v.w
58 14: X3.w => v.w
59 7: v => v
60 8: v => v
61 -- diff/dependencies-v3/todo/p2 --
62 bring in line with evalv2
63 -- out/dependencies/dynamic --
64 line reference path of resulting vertex
65 12: X1 => v.w
66 13: X2 => v.w
67 14: X3.w => v.w
68 20: Y1 => v
69 21: Y2 => v
70 -- out/dependencies-v3/stats/field --
71 // COUNT: 0
72 -- out/dependencies-v3/stats/all --
73 // COUNT: 12
74 -- out/dependencies-v3/stats/dynamic --
75 // COUNT: 24