Documentation ¶
Index ¶
- func AliasParamNameEquals(t1 token.Token, name string) bool
- func Contains[T comparable](s []T, e T) bool
- func CutRangeOut(wholeRange, innerRange token.Range) []token.Range
- func FromProtocolPosition(pos protocol.Position) token.Position
- func FromProtocolRange(rang protocol.Range) token.Range
- func GetAliasParamProtocolRange(aliasToken token.Token) protocol.Range
- func GetRangeLength(rang token.Range, doc *documents.DocumentState) int
- func IsInRange(rang token.Range, pos protocol.Position) bool
- func ToProtocolPosition(pos token.Position) protocol.Position
- func ToProtocolRange(rang token.Range) protocol.Range
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AliasParamNameEquals ¶ added in v0.3.0
func Contains ¶
func Contains[T comparable](s []T, e T) bool
func CutRangeOut ¶
returns two new ranges, constructed by cutting innerRange out of wholeRange innerRange must be completely contained in wholeRange the resulting ranges are wholeRange.Start - innerRange.Start and innerRange.End - wholeRange.End
func FromProtocolPosition ¶ added in v0.4.0
func GetAliasParamProtocolRange ¶ added in v0.3.0
func GetRangeLength ¶
func GetRangeLength(rang token.Range, doc *documents.DocumentState) int
returns the length of a token.Range
func ToProtocolPosition ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.