Documentation ¶
Index ¶
- func ASTToProtocolPosition(pos ast.Position) protocol.Position
- func ASTToProtocolRange(startPos, endPos ast.Position) protocol.Range
- func DeclarationKindToCompletionItemType(kind common.DeclarationKind) protocol.CompletionItemKind
- func DeclarationKindToSymbolKind(kind common.DeclarationKind) protocol.SymbolKind
- func DeclarationToDocumentSymbol(declaration ast.Declaration) protocol.DocumentSymbol
- func ProtocolToSemaPosition(pos protocol.Position) sema.Position
- func SuggestedFixesToCodeActions(suggestedFixes []analysis.SuggestedFix, protocolDiagnostic protocol.Diagnostic, ...) []*protocol.CodeAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASTToProtocolPosition ¶
ASTToProtocolPosition converts an AST position to a LSP position
func ASTToProtocolRange ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.