Documentation
¶
Overview ¶
Package analysisinternal provides gopls' internal analyses with a number of helper functions that operate on typed syntax trees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckReadable ¶
CheckReadable enforces the access policy defined by the ReadFile field of analysis.Pass.
Types ¶
type ReadFileFunc ¶ added in v2.5.0
A ReadFileFunc is a function that returns the contents of a file, such as os.ReadFile.
func CheckedReadFile ¶ added in v2.5.0
func CheckedReadFile(pass *analysis.Pass, readFile ReadFileFunc) ReadFileFunc
CheckedReadFile returns a wrapper around a Pass.ReadFile function that performs the appropriate checks.
Click to show internal directories.
Click to hide internal directories.