...

Text file src/cuelang.org/go/tools/trim/testdata/rmimport.txtar

Documentation: cuelang.org/go/tools/trim/testdata

     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 --
     7package a
     8
     9A: 5
    10-- b.cue --
    11package b
    12
    13import (
    14	"mod.test/blah/a"
    15)
    16
    17#Def: {
    18	y: 5
    19}
    20
    21x: #Def
    22x: y: a.A
    23-- cue.mod/module.cue --
    24module: "mod.test/blah"
    25-- out/trim --
    26== b.cue
    27package b
    28
    29import (
    30)
    31
    32#Def: {
    33	y: 5
    34}
    35
    36x: #Def
    37x: {}

View as plain text