gotools/gopls/internal/cache/package.go

type PackageID

type PackagePath

type PackageName

type ImportPath

type Package

type syntaxPackage

func (p *syntaxPackage) xrefs() []byte {}

func (p *syntaxPackage) methodsets() *methodsets.Index {}

func (p *syntaxPackage) tests() *testfuncs.Index {}

// hasFixedFiles reports whether there are any 'fixed' compiled go files in the
// package.
//
// Intended to be used to refine bug reports.
func (p *syntaxPackage) hasFixedFiles() bool {}

func (p *Package) String() string {}

func (p *Package) Metadata() *metadata.Package {}

type loadScope

type fileLoadScope

type packageLoadScope

type moduleLoadScope

type viewLoadScope

// Implement the loadScope interface.
func (fileLoadScope) aScope()    {}

func (packageLoadScope) aScope() {}

func (moduleLoadScope) aScope()  {}

func (viewLoadScope) aScope()    {}

func (p *Package) CompiledGoFiles() []*parsego.File {}

func (p *Package) File(uri protocol.DocumentURI) (*parsego.File, error) {}

func (pkg *syntaxPackage) File(uri protocol.DocumentURI) (*parsego.File, error) {}

// Syntax returns parsed compiled Go files contained in this package.
func (p *Package) Syntax() []*ast.File {}

// FileSet returns the FileSet describing this package's positions.
//
// The returned FileSet is guaranteed to describe all Syntax, but may also
// describe additional files.
func (p *Package) FileSet() *token.FileSet {}

// Types returns the type checked go/types.Package.
func (p *Package) Types() *types.Package {}

// TypesInfo returns the go/types.Info annotating the Syntax of this package
// with type information.
//
// All fields in the resulting Info are populated.
func (p *Package) TypesInfo() *types.Info {}

// TypesSizes returns the sizing function used for types in this package.
func (p *Package) TypesSizes() types.Sizes {}

// DependencyTypes returns the type checker's symbol for the specified
// package. It returns nil if path is not among the transitive
// dependencies of p, or if no symbols from that package were
// referenced during the type-checking of p.
func (p *Package) DependencyTypes(path PackagePath) *types.Package {}

// ParseErrors returns a slice containing all non-empty parse errors produces
// while parsing p.Syntax, or nil if the package contains no parse errors.
func (p *Package) ParseErrors() []scanner.ErrorList {}

// TypeErrors returns the go/types.Errors produced during type checking this
// package, if any.
func (p *Package) TypeErrors() []types.Error {}