analysisinternal

package
v1.63.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: GPL-3.0, BSD-3-Clause Imports: 3 Imported by: 0

README

analysisinternal

Extracted from /internal/analysisinternal/ (related to checker). This is just a copy of the code without any changes.

History

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

func CheckReadable(pass *analysis.Pass, filename string) error

CheckReadable enforces the access policy defined by the ReadFile field of analysis.Pass.

func MakeReadFile

func MakeReadFile(pass *analysis.Pass) func(filename string) ([]byte, error)

MakeReadFile returns a simple implementation of the Pass.ReadFile function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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