File: let2.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.12.0.-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,072 kB
  • sloc: sh: 57; makefile: 17
file content (66 lines) | stat: -rw-r--r-- 1,708 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# TODO:
# out/dependencies/all: origin should ideally be Let reference not v

-- in.cue --
v: w: u: d: 0

let X1 = {c: v}.c.w
let X2 = {c: {out: v}.out}.c.w
let X3 = {c: {out: v}.out}.c

let Y1 = {c: v}.c
let Y2 = {c: {out: v}.out}.c

a: b: {
	// all result in v.w
	x1: X1
	x2: X2
	x3: X3.w

	// all result in v
	// TODO: fix this for "All" mode. This can be done by getting rid of the
	// recurse flag and allowing the API to directly access the expressions
	// that need to be substituted.
	y1: Y1
	y2: Y2
}
-- out/dependencies/field --
line  reference    path of resulting vertex
-- out/dependencies-v3/all --
line  reference                path of resulting vertex
3:    {c: v}.c.w            => v.w
4:    {c: {out: v}.out}.c.w => v.w
14:   X3.w                  => v.w
7:    v                     => v
8:    v                     => v
-- diff/-out/dependencies-v3/all<==>+out/dependencies/all --
diff old new
--- old
+++ new
@@ -1,6 +1,6 @@
-line  reference    path of resulting vertex
-12:   X1        => v.w
-13:   X2        => v.w
-14:   X3.w      => v.w
-7:    v         => v
-8:    v         => v
+line  reference                path of resulting vertex
+3:    {c: v}.c.w            => v.w
+4:    {c: {out: v}.out}.c.w => v.w
+14:   X3.w                  => v.w
+7:    v                     => v
+8:    v                     => v
-- out/dependencies/all --
line  reference    path of resulting vertex
12:   X1        => v.w
13:   X2        => v.w
14:   X3.w      => v.w
7:    v         => v
8:    v         => v
-- out/dependencies/dynamic --
line  reference    path of resulting vertex
12:   X1        => v.w
13:   X2        => v.w
14:   X3.w      => v.w
20:   Y1        => v
21:   Y2        => v