Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves include paths for Thrift files. It provides a centralized, pure implementation that can be used by both CLI and LSP components.
func NewWithFS ¶
NewWithFS creates a Resolver that checks file existence through fsys. Absolute paths are looked up as-is; os.DirFS("/") reproduces the default filesystem behavior, and fstest.MapFS makes tests hermetic.
func (*Resolver) Candidates ¶ added in v0.1.8
Candidates lists the existing locations of includePath for currentFile, nearest first: the file's directory, then include paths ordered by shared directory prefix with the file's directory, config order breaking ties. More than one location means the include path is shadowed by another include path.