position

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

View Source
const DefaultBlockSize = 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewPool

func NewPool(blockSize int) *Pool

func (*Pool) Get

func (p *Pool) Get() *Position

type Position

type Position struct {
	StartLine int
	EndLine   int
	StartPos  int
	EndPos    int
}

Position represents node position

func NewPosition

func NewPosition(StartLine int, EndLine int, StartPos int, EndPos int) *Position

NewPosition Position constructor

Jump to

Keyboard shortcuts

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