Versions in this module Expand all Collapse all v0 v0.0.35 Oct 12, 2022 Changes in this version + func UTF16len(buf []byte) int + type Mapper struct + func NewMapper(content []byte) *Mapper + func (m *Mapper) LineColUTF16(offset int) (line, char int) + func (m *Mapper) Position(offset int) (protocol.Position, bool) + func (m *Mapper) Range(start, end int) (protocol.Range, error) + type TokenMapper struct + func NewTokenMapper(content []byte, file *token.File) *TokenMapper + func (m *TokenMapper) NodeRange(n ast.Node) (protocol.Range, error) + func (m *TokenMapper) Position(pos token.Pos) (protocol.Position, bool) + func (m *TokenMapper) Range(start, end token.Pos) (protocol.Range, error)