position

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const DefaultBlockSize = 50

Variables

View Source
var CheckColEquality = true

Tests that were written before the addition of StartCol and EndCol can set this to false, Which will not check if StartCol or EndCol are equal in the Equal function.

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
	StartCol  int
	EndCol    int
	StartPos  int
	EndPos    int
}

Position represents node position

func NewPosition

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

NewPosition Position constructor

func (Position) Equal

func (p Position) Equal(other Position) bool

Jump to

Keyboard shortcuts

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