cache

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package cache maintains a cache of parsed Go source files.

Loading and parsing a source file is relatively expensive to print an error message. This package keeps the AST for any parsed files in memory.

The need for the cache to have global lifetime requires package-level variables. Those variables are isolated in this package to limit visibility.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(path string) (*token.FileSet, *ast.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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