Help us shape the future of Go! Take the 2026 Go Developer Survey

mapper

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScipDescriptorToModelDescriptor

func ScipDescriptorToModelDescriptor(desc *scip.Descriptor) model.Descriptor

ScipDescriptorToModelDescriptor converts a SCIP descriptor to a model descriptor

func ScipDescriptorsToModelDescriptors

func ScipDescriptorsToModelDescriptors(descriptors []*scip.Descriptor) []model.Descriptor

ScipDescriptorsToModelDescriptors converts a slice of SCIP descriptors to a slice of model descriptors

func ScipDiagnosticToModelDiagnostic

func ScipDiagnosticToModelDiagnostic(occ *scip.Occurrence) []*protocol.Diagnostic

ScipDiagnosticToModelDiagnostic converts a SCIP diagnostic to a protocol diagnostic

func ScipDocumentToModelDocument

func ScipDocumentToModelDocument(doc *scip.Document) *model.Document

ScipDocumentToModelDocument converts a SCIP document to a model document

func ScipOccurrenceToLocation

func ScipOccurrenceToLocation(uri protocol.URI, occ *model.Occurrence) *protocol.Location

ScipOccurrenceToLocation converts from scip.Range to protocol.Location.

func ScipOccurrenceToLocationLink(uri protocol.URI, occ *model.Occurrence, origSelection *protocol.Range) *protocol.LocationLink

ScipOccurrenceToLocationLink converts from scip.Range to protocol.LocationLink. The last argument allows the caller to define a selectionRange of the origin of the link.

func ScipOccurrenceToModelOccurrence

func ScipOccurrenceToModelOccurrence(occ *scip.Occurrence) *model.Occurrence

ScipOccurrenceToModelOccurrence converts a SCIP occurrence to a model occurrence

func ScipOccurrenceToModelOccurrenceWithDiagnostics

func ScipOccurrenceToModelOccurrenceWithDiagnostics(occ *scip.Occurrence) (*model.Occurrence, []*protocol.Diagnostic)

ScipOccurrenceToModelOccurrenceWithDiagnostics converts a SCIP occurrence to a model occurrence and its diagnostics

func ScipPackageToModelScipPackage

func ScipPackageToModelScipPackage(pkg *scip.Package) *model.ScipPackage

ScipPackageToModelScipPackage converts a SCIP package to a model SCIP package

func ScipRelationshipToModelRelationship

func ScipRelationshipToModelRelationship(rel *scip.Relationship) *model.Relationship

ScipRelationshipToModelRelationship converts a SCIP relationship to a model relationship

func ScipSymbolInformationToDocumentSymbol

func ScipSymbolInformationToDocumentSymbol(symbolInfo *model.SymbolInformation, occ *model.Occurrence) *protocol.DocumentSymbol

ScipSymbolInformationToDocumentSymbol converts from scip.SymbolInformation to protocol.DocumentSymbol.

func ScipSymbolInformationToModelSymbolInformation

func ScipSymbolInformationToModelSymbolInformation(sym *scip.SymbolInformation) *model.SymbolInformation

ScipSymbolInformationToModelSymbolInformation converts a SCIP symbol information to a model symbol information

func ScipSymbolKindToDocumentSymbolKind

func ScipSymbolKindToDocumentSymbolKind(symbolKind scip.SymbolInformation_Kind) protocol.SymbolKind

ScipSymbolKindToDocumentSymbolKind converts from scip.SymbolInformation_Kind to protocol.SymbolKind.

func ScipToProtocolPosition

func ScipToProtocolPosition(pos scip.Position) protocol.Position

ScipToProtocolPosition maps a SCIP position to an LSP position

func ScipToProtocolRange

func ScipToProtocolRange(rng []int32) protocol.Range

ScipToProtocolRange maps a SCIP range array to a LSP protocol Range

Types

This section is empty.

Jump to

Keyboard shortcuts

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