token

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package token used

Index

Constants

This section is empty.

Variables

View Source
var InvalidLnColPos = LnColPos{
	Pos: -1,
	Ln:  -1,
	Col: -1,
}
View Source
var InvalidPos = -1

Functions

func LnCol

func LnCol(query string, pos Pos) (int, int, error)

Types

type LnColPos added in v0.2.1

type LnColPos struct {
	Pos Pos
	Ln  int
	Col int
}

type Pos

type Pos int

type PosCache added in v0.2.1

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

func NewPosCache added in v0.2.1

func NewPosCache(query string) *PosCache

func (*PosCache) LnCol added in v0.2.1

func (c *PosCache) LnCol(pos Pos) LnColPos

Jump to

Keyboard shortcuts

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