astcache

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: AGPL-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 LoadFromFiles

func LoadFromFiles(files []string, log logutils.Log) (*Cache, error)

func LoadFromProgram

func LoadFromProgram(prog *loader.Program, 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) *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