1
0
mirror of https://github.com/golang/go synced 2024-11-06 22:56:12 -07:00
go/internal/lsp/testdata/importedcomplit/imported_complit.go

27 lines
560 B
Go
Raw Normal View History

package importedcomplit
import (
"golang.org/x/tools/internal/lsp/foo"
)
func _() {
var V int //@item(icVVar, "V", "int", "var")
_ = foo.StructFoo{V} //@complete("}", Value, icVVar)
}
func _() {
var (
aa string //@item(icAAVar, "aa", "string", "var")
ab int //@item(icABVar, "ab", "int", "var")
)
_ = foo.StructFoo{a} //@complete("}", abVar, aaVar)
var s struct {
AA string //@item(icFieldAA, "AA", "string", "field")
AB int //@item(icFieldAB, "AB", "int", "field")
}
_ = foo.StructFoo{s.} //@complete("}", icFieldAB, icFieldAA)
}