test

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertNodesEqual

func AssertNodesEqual(t *testing.T, ctx interface{}, expected ast.Node, actual ast.Node)

AssertNodesEqual asserts that two AST nodes are equal

Types

type Position

type Position struct {
	// contains filtered or unexported fields
}

func NewPosition

func NewPosition(pos int) Position

func (Position) Filename

func (p Position) Filename() string

func (Position) Pos

func (p Position) Pos() int

func (Position) String

func (p Position) String() string

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(pos int, remaining int, isEOF bool, cloned bool) Reader

func (Reader) Clone

func (r Reader) Clone() reader.Reader

func (Reader) Cursor

func (r Reader) Cursor() reader.Position

func (Reader) IsEOF

func (r Reader) IsEOF() bool

func (Reader) Remaining

func (r Reader) Remaining() int

func (Reader) String

func (r Reader) String() string

Jump to

Keyboard shortcuts

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