Documentation ¶
Index ¶
- type File
- func (f *File) GetAST(ctx context.Context) *ast.File
- func (f *File) GetContent(ctx context.Context) []byte
- func (f *File) GetFileSet(ctx context.Context) *token.FileSet
- func (f *File) GetPackage(ctx context.Context) source.Package
- func (f *File) GetToken(ctx context.Context) *token.File
- func (f *File) URI() span.URI
- type Package
- func (pkg *Package) GetActionGraph(ctx context.Context, a *analysis.Analyzer) (*source.Action, error)
- func (pkg *Package) GetErrors() []packages.Error
- func (pkg *Package) GetFilenames() []string
- func (pkg *Package) GetSyntax() []*ast.File
- func (pkg *Package) GetTypes() *types.Package
- func (pkg *Package) GetTypesInfo() *types.Info
- func (pkg *Package) IsIllTyped() bool
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File holds all the information we know about a file.
func (*File) GetContent ¶
GetContent returns the contents of the file, reading it from file system if needed.
type Package ¶
type Package struct {
// contains filtered or unexported fields
}
Package contains the type information needed by the source package.
func (*Package) GetActionGraph ¶
func (*Package) GetFilenames ¶
func (*Package) GetTypesInfo ¶
func (*Package) IsIllTyped ¶
type View ¶
type View struct { // Config is the configuration used for the view's interaction with the // go/packages API. It is shared across all views. Config packages.Config // contains filtered or unexported fields }
func (*View) BackgroundContext ¶
Click to show internal directories.
Click to hide internal directories.