| 1 | // Copyright 2020 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // Package packagesinternal exposes internal-only fields from go/packages. |
| 6 | package packagesinternalscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/ |
| 7 | |
| 8 | import "fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/" |
| 9 | |
| 10 | var GetDepsErrorsscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/GetDepsErrors. = func(pscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/GetDepsErrors:p. any) []*PackageErrorscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError# { return nil } |
| 11 | |
| 12 | type PackageErrorscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError# struct { |
| 13 | ImportStackscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#ImportStack. []string // shortest path from package named on command line to this one |
| 14 | Posscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#Pos. string // position of error (if present, file:line:col) |
| 15 | Errscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#Err. string // the error itself |
| 16 | } |
| 17 | |
| 18 | func (err PackageErrorscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#) Stringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#String().() string { |
| 19 | return fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Sprintf().("%s: %s (import stack: %s)", err.Posscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#Pos., err.Errscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#Err., err.ImportStackscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/PackageError#ImportStack.) |
| 20 | } |
| 21 | |
| 22 | var TypecheckCgoscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/TypecheckCgo. int |
| 23 | var DepsErrorsscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/packagesinternal`/DepsErrors. int // must be set as a LoadMode to call GetDepsErrors |