symlinks

package
v0.0.0-...-a37a257 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KnownDirectoryLink struct {
	// Matches the casing returned by `realpath`. Used to compute the `realpath` of children.
	// Always has trailing directory separator
	Real string
	// toPath(real). Stored to avoid repeated recomputation.
	// Always has trailing directory separator
	RealPath tspath.Path
}
type KnownSymlinks struct {
	// contains filtered or unexported fields
}
func NewKnownSymlink(currentDirectory string, useCaseSensitiveFileNames bool) *KnownSymlinks

func (*KnownSymlinks) Directories

Gets a map from symlink to realpath. Keys have trailing directory separators.

func (*KnownSymlinks) DirectoriesByRealpath

func (cache *KnownSymlinks) DirectoriesByRealpath() *collections.SyncMap[tspath.Path, *collections.SyncSet[string]]

func (*KnownSymlinks) Files

func (cache *KnownSymlinks) Files() *collections.SyncMap[tspath.Path, string]

Gets a map from symlink to realpath

func (*KnownSymlinks) HasDirectory

func (cache *KnownSymlinks) HasDirectory(symlinkPath tspath.Path) bool

func (*KnownSymlinks) ProcessResolution

func (cache *KnownSymlinks) ProcessResolution(originalPath string, resolvedFileName string)

func (*KnownSymlinks) SetDirectory

func (cache *KnownSymlinks) SetDirectory(symlink string, symlinkPath tspath.Path, realDirectory *KnownDirectoryLink)

func (*KnownSymlinks) SetFile

func (cache *KnownSymlinks) SetFile(symlinkPath tspath.Path, realpath string)

func (*KnownSymlinks) SetSymlinksFromResolutions

func (cache *KnownSymlinks) SetSymlinksFromResolutions(
	forEachResolvedModule func(callback func(resolution *module.ResolvedModule, moduleName string, mode core.ResolutionMode, filePath tspath.Path), file *ast.SourceFile),
	forEachResolvedTypeReferenceDirective func(callback func(resolution *module.ResolvedTypeReferenceDirective, moduleName string, mode core.ResolutionMode, filePath tspath.Path), file *ast.SourceFile),
)

Jump to

Keyboard shortcuts

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