token

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:35 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileBase

func FileBase(f *token.File) int

func FileLine

func FileLine(f *token.File, p token.Pos) int

func FileLineCount

func FileLineCount(f *token.File) int

func FileLineStart

func FileLineStart(f *token.File, line int) token.Pos

func FileName

func FileName(f *token.File) string

func FileOffset

func FileOffset(f *token.File, p token.Pos) int

func FilePos

func FilePos(f *token.File, offset int) token.Pos

func FilePosition

func FilePosition(f *token.File, p token.Pos) token.Position

func FilePositionFor

func FilePositionFor(f *token.File, p token.Pos, adjusted bool) token.Position

func FileSetAddFile

func FileSetAddFile(s *token.FileSet, filename string, base, size int) *token.File

func FileSetBase

func FileSetBase(s *token.FileSet) int

func FileSetFile

func FileSetFile(s *token.FileSet, p token.Pos) *token.File

func FileSetIterate

func FileSetIterate(s *token.FileSet, f func(*token.File) bool)

func FileSetLines

func FileSetLines(f *token.File, lines []int) bool

func FileSetPosition

func FileSetPosition(s *token.FileSet, p token.Pos) token.Position

func FileSetPositionFor

func FileSetPositionFor(s *token.FileSet, p token.Pos, adjusted bool) token.Position

func FileSetRead

func FileSetRead(s *token.FileSet, decode func(interface{}) error) error

func FileSetWrite

func FileSetWrite(s *token.FileSet, encode func(interface{}) error) error

func FileSize

func FileSize(f *token.File) int

func IsExported

func IsExported(name string) bool

func IsIdentifier

func IsIdentifier(name string) bool

func IsKeyword

func IsKeyword(name string) bool

func Lookup

func Lookup(ident string) token.Token

func NewFileSet

func NewFileSet() *token.FileSet

func PosIsValid

func PosIsValid(p token.Pos) bool

func PositionIsValid

func PositionIsValid(pos *token.Position) bool

func PositionString

func PositionString(pos token.Position) string

func TokenIsKeyword

func TokenIsKeyword(tok token.Token) bool

func TokenIsLiteral

func TokenIsLiteral(tok token.Token) bool

func TokenIsOperator

func TokenIsOperator(tok token.Token) bool

func TokenPrecedence

func TokenPrecedence(op token.Token) int

func TokenString

func TokenString(tok token.Token) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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