1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:05:02 -07:00

internal/lsp: fix return variables for FindPosInPackage

Change-Id: Icaa9595f05ab9583e60fc0392cbe21e1f20a3934
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208666
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
Rebecca Stambler 2019-11-25 14:42:09 -05:00
parent d7101b74a4
commit b99b2d090f

View File

@ -425,7 +425,7 @@ func formatParams(s Snapshot, pkg Package, sig *types.Signature, qf types.Qualif
} }
func formatFieldType(s Snapshot, srcpkg Package, obj types.Object, qf types.Qualifier) (string, error) { func formatFieldType(s Snapshot, srcpkg Package, obj types.Object, qf types.Qualifier) (string, error) {
file, _, pkg, err := s.View().FindPosInPackage(srcpkg, obj.Pos()) file, pkg, err := s.View().FindPosInPackage(srcpkg, obj.Pos())
if err != nil { if err != nil {
return "", err return "", err
} }