File: resolve_env.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (75 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (2)
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
67
68
69
70
71
72
73
74
75
-- in.cue --
a: {
	d: int
	b: {
		c: d
	}
}
x: {
	d: 2
	b: a.b.c // should be int, not 2
}
a1: y: 5
a1: a2: a3: a4: a5: a1.y
b: a1.a2.a3.a4.a5
-- out/eval/stats --
Leaks:  0
Freed:  15
Reused: 9
Allocs: 6
Retain: 0

Unifications: 15
Conjuncts:    22
Disjuncts:    15
-- out/eval --
(struct){
  a: (struct){
    d: (int){ int }
    b: (struct){
      c: (int){ int }
    }
  }
  x: (struct){
    d: (int){ 2 }
    b: (int){ int }
  }
  a1: (struct){
    y: (int){ 5 }
    a2: (struct){
      a3: (struct){
        a4: (struct){
          a5: (int){ 5 }
        }
      }
    }
  }
  b: (int){ 5 }
}
-- out/compile --
--- in.cue
{
  a: {
    d: int
    b: {
      c: 〈1;d〉
    }
  }
  x: {
    d: 2
    b: 〈1;a〉.b.c
  }
  a1: {
    y: 5
  }
  a1: {
    a2: {
      a3: {
        a4: {
          a5: 〈4;a1〉.y
        }
      }
    }
  }
  b: 〈0;a1〉.a2.a3.a4.a5
}