mapper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapper

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

func NewMapper

func NewMapper(fileURI uri.URI, content []byte) *Mapper

NewMapper ...

func (*Mapper) GetLSPEndPosition

func (m *Mapper) GetLSPEndPosition() types.Position

func (*Mapper) LSPPosToParserPosition

func (m *Mapper) LSPPosToParserPosition(pos types.Position) (parser.Position, error)

convert from utf16-based to rune-based position

Jump to

Keyboard shortcuts

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