Debian Codegraph @

tools/trim/testdata/rmimport.txtar

raw
1 // Issue #716
2 //
3 // NOTE removing the empty import decl is more a job for
4 // cue/format or astutil.Sanitize.
5
6 -- a/a.cue --
7 package a
8
9 A: 5
10 -- b.cue --
11 package b
12
13 import (
14 "mod.test/blah/a"
15 )
16
17 #Def: {
18 y: 5
19 }
20
21 x: #Def
22 x: y: a.A
23 -- cue.mod/module.cue --
24 module: "mod.test/blah"
25 language: version: "v0.9.0"
26 -- out/trim-v3 --
27 == b.cue
28 package b
29
30 import (
31 )
32
33 #Def: {
34 y: 5
35 }
36
37 x: #Def
38 x: _
39 -- diff/-out/trim-v3<==>+out/trim --
40 diff old new
41 --- old
42 +++ new
43 @@ -9,4 +9,4 @@
44 }
45
46 x: #Def
47 -x: {}
48 +x: _
49 -- out/trim-v3-noshare --
50 == b.cue
51 package b
52
53 import (
54 )
55
56 #Def: {
57 y: 5
58 }
59
60 x: #Def
61 x: _
62 -- diff/-out/trim-v3-noshare<==>+out/trim --
63 diff old new
64 --- old
65 +++ new
66 @@ -9,4 +9,4 @@
67 }
68
69 x: #Def
70 -x: {}
71 +x: _
72 -- out/trim --
73 == b.cue
74 package b
75
76 import (
77 )
78
79 #Def: {
80 y: 5
81 }
82
83 x: #Def
84 x: {}