positioner

package
v2.2.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL