Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFilePos ¶
util func to replace parseutil.*
func ResLocToFilePos ¶
Types ¶
type ResLoc ¶
type ResLoc struct {
Path string // raw path
Line int // 0 is nil
Column int // 0 is nil
Offset int // -1 is nil
PathSep rune
Escape rune
Scheme string // ex: "file://", useful to know when to translate to another path separator
Volume string
Pos, End int // contains reverse expansion
}
resource location
func (*ResLoc) ClearFilename1 ¶
func (*ResLoc) Stringify1 ¶
func (*ResLoc) ToLinecolString ¶ added in v1.3.8
func (*ResLoc) ToOffsetString ¶ added in v1.3.8
type ResLocParser ¶
type ResLocParser struct {
// contains filtered or unexported fields
}
func NewResLocParser ¶
func NewResLocParser(escape, pathSeparator rune, parseVolume bool) *ResLocParser
type ReverseScan ¶ added in v1.3.13
type ReverseScan struct {
// contains filtered or unexported fields
}
func NewReverseScanResLoc ¶ added in v1.3.13
func NewReverseScanResLoc(escape, pathSep rune, parseVolume bool) *ReverseScan
func (*ReverseScan) ParseStart ¶ added in v1.3.13
func (rs *ReverseScan) ParseStart(ps *btparser.ParserState, index, maxLen int) (int, error)
Click to show internal directories.
Click to hide internal directories.