token

package
v1.60.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package token contains the object and logic needed to describe a lexed token in a GraphQL document

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Keyword      keyword.Keyword
	Literal      ast.ByteSliceReference
	TextPosition position.Position
}

func (*Token) SetEnd

func (t *Token) SetEnd(inputPosition int, textPosition position.Position)

func (*Token) SetStart

func (t *Token) SetStart(inputPosition int, textPosition position.Position)

func (Token) String

func (t Token) String() string

Jump to

Keyboard shortcuts

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