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) GetTypesSizes() types.Sizes
- func (pkg *Package) IsIllTyped() bool
- type View
- func (v *View) BackgroundContext() context.Context
- func (v *View) FileSet() *token.FileSet
- func (v *View) FindFile(ctx context.Context, uri span.URI) *File
- func (v *View) GetFile(ctx context.Context, uri span.URI) (source.File, error)
- func (v *View) Logger() xlog.Logger
- func (v *View) SetContent(ctx context.Context, uri span.URI, content []byte) error
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) GetTypesSizes ¶
func (*Package) IsIllTyped ¶
type View ¶
type View struct { // Name is the user visible name of this view. Name string // Folder is the root of this view. Folder span.URI // 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.