position

package
v2.0.0-rc.129 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 1 Imported by: 0

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