utils

package
v0.0.0-...-3e171d2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeLocation

type CodeLocation struct {
	Filename     string
	Index        int
	Line, Column int
}

func (*CodeLocation) Clone

func (cl *CodeLocation) Clone() *CodeLocation

func (*CodeLocation) CloneNext

func (cl *CodeLocation) CloneNext() *CodeLocation

func (*CodeLocation) ClonePrevious

func (cl *CodeLocation) ClonePrevious() *CodeLocation

func (*CodeLocation) Dump

func (cl *CodeLocation) Dump() string

type CodePartLocation

type CodePartLocation struct {
	StartLocation, EndLocation *CodeLocation
}

func NewCharacterLocation

func NewCharacterLocation(location *CodeLocation) *CodePartLocation

func (*CodePartLocation) Clone

func (cpl *CodePartLocation) Clone() *CodePartLocation

func (*CodePartLocation) Dump

func (cpl *CodePartLocation) Dump() string

Jump to

Keyboard shortcuts

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