Documentation
¶
Index ¶
- func InRange(point ast.Location, theRange ast.LocationRange) bool
- func NewProtocolRange(startLine, startCharacter, endLine, endCharacter int) protocol.Range
- func PositionProtocolToAST(point protocol.Position) ast.Location
- func RangeASTToProtocol(lr ast.LocationRange) protocol.Range
- func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProtocolRange ¶
func RangeASTToProtocol ¶
func RangeASTToProtocol(lr ast.LocationRange) protocol.Range
RangeASTToProtocol translates a ast.LocationRange to a protocol.Range. The former is one indexed and the latter is zero indexed.
func RangeGreaterOrEqual ¶ added in v0.7.0
func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool
RangeGreaterOrEqual returns true if the first range is greater than the second.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.