typesutil

package
v0.16.1-pre.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileQualifier

func FileQualifier(f *ast.File, pkg *types.Package, info *types.Info) types.Qualifier

FileQualifier returns a types.Qualifier function that qualifies imported symbols appropriately based on the import environment of a given file.

func ImportedPkgName

func ImportedPkgName(info *types.Info, imp *ast.ImportSpec) (*types.PkgName, bool)

ImportedPkgName returns the PkgName object declared by an ImportSpec. TODO(adonovan): use go1.22's Info.PkgNameOf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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