Debian Codegraph @

internal/core/dep/testdata/resolvedep.txtar

raw
1 // TODO: note that the output has various *non-rooted** entries. These should
2 // probably be eliminated. In general, it seems that the number of dependencies
3 // reported is still too large.
4 -- in.cue --
5 _input: disjs: [{start: 1}, {}, {}, {},]
6 a: b: (_convert & {in: _input}).out
7
8 _convert: {
9 in: _
10 out: _
11 _firstOne: (#selectFirstOne & {"in": in})
12 _computed: (#chainedCompute & {"in": _firstOne.out}).out
13 if _computed != _|_ {
14 out: result: _computed
15 }
16 }
17
18 #disjunction: {
19 start?: 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
20 }
21
22 #selectFirst: {
23 in: disjs?: [...#disjunction]
24 out: in.disjs[0]
25 }
26
27 #selectFirstOne: {
28 in: _
29 _select: (#selectFirst & {"in": in}).out
30 out: start: _select.start
31 }
32
33 #chainedCompute: {
34 in: _
35 l1: in.start
36 l2: l1 + l1
37 l3: l2 + l2
38 l4: l3 + l3
39 out: l4
40 }
41 -- out/dependencies-v3/field --
42 line reference path of resulting vertex
43 32: l1 => #disjunction.start
44 25: (#selectFirst & {"in": in}).out => #selectFirst.out
45 31: in.start => #selectFirstOne.out.start
46 32: l1 => **non-rooted**
47 33: l2 => **non-rooted**
48 34: l3 => **non-rooted**
49 8: (#chainedCompute & {"in": _firstOne.out}).out => #chainedCompute.l4
50 2: (_convert & {in: _input}).out => _convert.out
51 -- out/dependencies-v3/all --
52 line reference path of resulting vertex
53 32: l1 => #disjunction.start
54 25: (#selectFirst & {"in": in}).out => #selectFirst.out
55 31: in.start => #selectFirstOne.out.start
56 32: l1 => **non-rooted**
57 33: l2 => **non-rooted**
58 34: l3 => **non-rooted**
59 8: (#chainedCompute & {"in": _firstOne.out}).out => #chainedCompute.l4
60 10: _computed => **non-rooted**
61 2: (_convert & {in: _input}).out => _convert.out
62 -- out/dependencies-v3/dynamic --
63 line reference path of resulting vertex
64 32: l1 => #disjunction.start
65 25: (#selectFirst & {"in": in}).out => #selectFirst.out
66 31: in.start => #selectFirstOne.out.start
67 32: l1 => **non-rooted**
68 33: l2 => **non-rooted**
69 34: l3 => **non-rooted**
70 8: (#chainedCompute & {"in": _firstOne.out}).out => #chainedCompute.l4
71 2: (_convert & {in: _input}).out => _convert.out
72 -- out/dependencies-v3/stats/field --
73 // COUNT: 20
74 -- out/dependencies-v3/stats/all --
75 // COUNT: 41
76 -- out/dependencies-v3/stats/dynamic --
77 // COUNT: 61