package
Version:
v1.0.0-alpha.21
Opens a new window with list of versions in this module.
Published: Oct 3, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package source defines portable Ferret source inputs and coordinates. Span
offset units remain defined by the producer of each source value.
type Location struct {
Position
SourceName string `json:"sourceName"`
}
Location adds the semantic source name to a Position. SourceName does not
imply that the source is backed by a local filesystem path.
type Position struct {
Line int `json:"line"`
Column int `json:"column"`
}
Position identifies a line and column within source text.
Range combines a source Location with its producer-defined Span.
type Source struct {
Name string `json:"name"`
Content string `json:"content"`
}
type Span struct {
Start int `json:"start"`
End int `json:"end"`
}
Span identifies a producer-defined interval within source text. Its offset
units are defined by the producer rather than by the universal API.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.