utils

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package utils is a simple package that group any pure functions useful in LSP /!\: functions in package utils should be the simplest possible

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(v bool) *bool

BoolPtr convert a boolean to a pointer to boolean

func CueLocationToLSPLocation

func CueLocationToLSPLocation(v *loader.Value) protocol.Location

func IntToUInt

func IntToUInt(v int) protocol.UInteger

IntToUInt converts int position into protocol.UInteger with a padding of 1 because LSP based their positions on 0 but CUE on 1.

func UIntToInt

func UIntToInt(v protocol.UInteger) int

UIntToInt converts LSP protocol.UInteger to int and apply a padding of 1 because LSP based their positions on 0 but CUE on 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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