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) IsKnown() bool
- func (p *Position) Line() int
- func (p *Position) SetFile(file 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 (*Position) As4DigitString ¶
func (*Position) AsCompactString ¶ added in v0.14.0
func (*Position) AsIntString ¶
func (*Position) DeepCopyWithLineOffset ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.