position

package
v2.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 1 Imported by: 5 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package position contains the objects and logic to properly describe the position of a token in a GraphQL document

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	LineStart uint32
	LineEnd   uint32
	CharStart uint32
	CharEnd   uint32
}

func (*Position) IsBefore

func (p *Position) IsBefore(another Position) bool

func (*Position) MergeEndIntoEnd

func (p *Position) MergeEndIntoEnd(position Position)

func (*Position) MergeStartIntoEnd

func (p *Position) MergeStartIntoEnd(position Position)

func (*Position) MergeStartIntoStart

func (p *Position) MergeStartIntoStart(position Position)

func (*Position) Reset

func (p *Position) Reset()

func (Position) String

func (p Position) String() string

Jump to

Keyboard shortcuts

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