astcache

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: GPL-3.0 Imports: 8 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 LoadFromPackages added in v1.11.1

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) GetOrParse added in v1.6.1

func (c Cache) GetOrParse(filename string, fset *token.FileSet) *File

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