Documentation
¶
Index ¶
- type KnownDirectoryLink
- type KnownSymlinks
- func (cache *KnownSymlinks) Directories() *collections.SyncMap[tspath.Path, *KnownDirectoryLink]
- func (cache *KnownSymlinks) DirectoriesByRealpath() *collections.SyncMap[tspath.Path, *collections.SyncSet[string]]
- func (cache *KnownSymlinks) Files() *collections.SyncMap[tspath.Path, string]
- func (cache *KnownSymlinks) HasDirectory(symlinkPath tspath.Path) bool
- func (cache *KnownSymlinks) ProcessResolution(originalPath string, resolvedFileName string)
- func (cache *KnownSymlinks) SetDirectory(symlink string, symlinkPath tspath.Path, realDirectory *KnownDirectoryLink)
- func (cache *KnownSymlinks) SetFile(symlinkPath tspath.Path, realpath string)
- func (cache *KnownSymlinks) SetSymlinksFromResolutions(forEachResolvedModule func(...), ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KnownDirectoryLink ¶
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 ¶
type KnownSymlinks struct {
// contains filtered or unexported fields
}
func NewKnownSymlink ¶
func NewKnownSymlink(currentDirectory string, useCaseSensitiveFileNames bool) *KnownSymlinks
func (*KnownSymlinks) Directories ¶
func (cache *KnownSymlinks) Directories() *collections.SyncMap[tspath.Path, *KnownDirectoryLink]
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), )
Click to show internal directories.
Click to hide internal directories.