conversion

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASTToProtocolPosition

func ASTToProtocolPosition(pos ast.Position) protocol.Position

ASTToProtocolPosition converts an AST position to a LSP position

func ASTToProtocolRange

func ASTToProtocolRange(startPos, endPos ast.Position) protocol.Range

ASTToProtocolRange converts an AST range to a LSP range

func DeclarationKindToCompletionItemType added in v0.32.0

func DeclarationKindToCompletionItemType(kind common.DeclarationKind) protocol.CompletionItemKind

func DeclarationKindToSymbolKind

func DeclarationKindToSymbolKind(kind common.DeclarationKind) protocol.SymbolKind

func DeclarationToDocumentSymbol

func DeclarationToDocumentSymbol(declaration ast.Declaration) protocol.DocumentSymbol

DeclarationToDocumentSymbol converts AST Declaration to a DocumentSymbol

func ProtocolToSemaPosition

func ProtocolToSemaPosition(pos protocol.Position) sema.Position

ProtocolToSemaPosition converts a LSP position to a sema position

func SuggestedFixesToCodeActions added in v0.32.0

func SuggestedFixesToCodeActions(
	suggestedFixes []analysis.SuggestedFix,
	protocolDiagnostic protocol.Diagnostic,
	uri protocol.DocumentURI,
) []*protocol.CodeAction

Types

This section is empty.

Jump to

Keyboard shortcuts

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