Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Positioner ¶
type Positioner struct {
// contains filtered or unexported fields
}
Positioner is a transformation that only changes positional information.
func NewFillLineColFromOffset ¶
func NewFillLineColFromOffset() Positioner
NewFillLineColFromOffset gets the original source code and its parsed form as *Node and fills every Line and Column field using its Offset.
func NewFillOffsetFromLineCol ¶
func NewFillOffsetFromLineCol() Positioner
NewFillOffsetFromLineCol gets the original source code and its parsed form as *Node and fills every Offset field using its Line and Column.
func (Positioner) OnCode ¶
func (t Positioner) OnCode(code string) transformer.Transformer
OnCode uses the source code to update positional information.
Click to show internal directories.
Click to hide internal directories.