astcache

package
v1.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func LoadFromFilenames added in v1.17.2

func LoadFromFilenames(log logutils.Log, filenames ...string) *Cache

func LoadFromPackages added in v1.17.2

func LoadFromPackages(pkgs []*packages.Package, log logutils.Log) (*Cache, error)

func NewCache added in v1.6.1

func NewCache(log logutils.Log) *Cache

func (Cache) Get added in v1.6.1

func (c Cache) Get(filename string) *File

func (Cache) GetAllValidFiles

func (c Cache) GetAllValidFiles() []*File

func (Cache) ParsedFilenames added in v1.17.2

func (c Cache) ParsedFilenames() []string

type File

type File struct {
	F    *ast.File
	Fset *token.FileSet
	Name string
	Err  error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL