Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IncludeCall ¶
IncludeCall is a function that resolves and reads an include file.
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) IncludeCall ¶
func (r *Resolver) IncludeCall(initialFile string) IncludeCall
IncludeCall creates an IncludeCall function for the given file. The returned function resolves includes using include paths first, then falls back to relative resolution from initialFile.
Click to show internal directories.
Click to hide internal directories.