Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reference ¶
type Reference struct { Valid bool `json:"Valid"` File string `json:"File"` Line int `json:"Line"` LineFrom int `json:"-"` LineTo int `json:"-"` Column int `json:"Offset"` }
func NewEmptyReference ¶
func NewEmptyReference() Reference
func NewReferenceRange ¶
func NewReferenceSingleLine ¶
func (Reference) ClampWithRealLinesCount ¶
ClampWithRealLinesCount allows to clamp lines to real file lines count (upper clamp)
func (Reference) ExtendRange ¶
ExtendRange will extend from-to range in both ways on growLinesCount lines for example initialRange=[2..5], after ExtendRange(1) it will be [1..6]
Click to show internal directories.
Click to hide internal directories.