2019-08-14 15:25:47 -06:00
|
|
|
package unimported
|
|
|
|
|
|
|
|
func _() {
|
2019-12-05 16:08:19 -07:00
|
|
|
//@unimported("", hashslashadler32, goslashast, encodingslashbase64, bytes)
|
|
|
|
pkg //@unimported("g", externalpackage)
|
2019-11-01 15:59:28 -06:00
|
|
|
// container/ring is extremely unlikely to be imported by anything, so shouldn't have type information.
|
|
|
|
ring.Ring //@unimported("Ring", ringring)
|
|
|
|
signature.Foo //@unimported("Foo", signaturefoo)
|
2019-08-14 15:25:47 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// Create markers for unimported std lib packages. Only for use by this test.
|
2019-12-05 16:08:19 -07:00
|
|
|
/* adler32 */ //@item(hashslashadler32, "adler32", "\"hash/adler32\"", "package")
|
|
|
|
/* ast */ //@item(goslashast, "ast", "\"go/ast\"", "package")
|
|
|
|
/* base64 */ //@item(encodingslashbase64, "base64", "\"encoding/base64\"", "package")
|
2019-08-14 15:25:47 -06:00
|
|
|
/* bytes */ //@item(bytes, "bytes", "\"bytes\"", "package")
|
2019-11-01 15:59:28 -06:00
|
|
|
/* pkg */ //@item(externalpackage, "pkg", "\"example.com/extramodule/pkg\"", "package")
|
2019-11-01 11:50:21 -06:00
|
|
|
|
2019-11-01 15:59:28 -06:00
|
|
|
/* ring.Ring */ //@item(ringring, "Ring", "(from \"container/ring\")", "var")
|
|
|
|
|
|
|
|
/* signature.Foo */ //@item(signaturefoo, "Foo", "func(a string, b int) (c bool) (from \"golang.org/x/tools/internal/lsp/signature\")", "func")
|