Help us shape the future of Go! Take the 2026 Go Developer Survey

token

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 4 Imported by: 0

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