Documentation ¶
Index ¶
- type Position
- func (p *Position) As4DigitString() string
- func (p *Position) AsCompactString() string
- func (p *Position) AsIntString() string
- func (p *Position) AsString() string
- func (p *Position) DeepCopy() *Position
- func (p *Position) DeepCopyWithLineOffset(offset int) *Position
- func (p *Position) FromMemory() bool
- func (p *Position) GetFile() string
- func (p *Position) GetLine() string
- func (p *Position) IsKnown() bool
- func (p *Position) IsNextTo(otherPostion *Position) bool
- func (p *Position) LineNum() int
- func (p *Position) SetFile(file string)
- func (p *Position) SetLine(line string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct {
// contains filtered or unexported fields
}
func NewPosition ¶
func NewUnknownPosition ¶
func NewUnknownPosition() *Position
NewUnknownPosition is equivalent of zero value *Position
func NewUnknownPositionWithKeyVal ¶ added in v0.36.0
func (*Position) As4DigitString ¶
func (*Position) AsCompactString ¶ added in v0.14.0
func (*Position) AsIntString ¶
func (*Position) DeepCopyWithLineOffset ¶ added in v0.17.0
func (*Position) FromMemory ¶ added in v0.36.0
Click to show internal directories.
Click to hide internal directories.