Documentation ¶
Index ¶
- Constants
- type Contains
- type DefinitionResult
- type Document
- type Edge
- type EdgeLabel
- type Element
- type ElementType
- type HoverResult
- type Item
- func NewItem(id, outV uint64, inVs []uint64, document uint64) Item
- func NewItemOfDefinitions(id, outV uint64, inVs []uint64, document uint64) Item
- func NewItemOfReferences(id, outV uint64, inVs []uint64, document uint64) Item
- func NewItemWithProperty(id, outV uint64, inVs []uint64, document uint64, property string) Item
- type MarkedString
- type MetaData
- type Moniker
- type MonikerEdge
- type Next
- type NextMonikerEdge
- type PackageInformation
- type PackageInformationEdge
- type Pos
- type Project
- type Range
- type ReferenceResult
- type ResultSet
- type TextDocumentDefinition
- type TextDocumentHover
- type TextDocumentReferences
- type ToolInfo
- type Vertex
- type VertexLabel
Constants ¶
View Source
const PositionEncoding = "utf-16"
View Source
const Version = "0.4.3"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contains ¶
func NewContains ¶
type DefinitionResult ¶
type DefinitionResult struct {
Vertex
}
func NewDefinitionResult ¶
func NewDefinitionResult(id uint64) DefinitionResult
type Document ¶
func NewDocument ¶
type EdgeLabel ¶
type EdgeLabel string
const ( EdgeContains EdgeLabel = "contains" EdgeItem EdgeLabel = "item" EdgeNext EdgeLabel = "next" EdgeMoniker EdgeLabel = "moniker" EdgeNextMoniker EdgeLabel = "nextMoniker" EdgePackageInformation EdgeLabel = "packageInformation" EdgeTextDocumentDocumentSymbol EdgeLabel = "textDocument/documentSymbol" EdgeTextDocumentFoldingRange EdgeLabel = "textDocument/foldingRange" EdgeTextDocumentDocumentLink EdgeLabel = "textDocument/documentLink" EdgeTextDocumentDiagnostic EdgeLabel = "textDocument/diagnostic" EdgeTextDocumentDefinition EdgeLabel = "textDocument/definition" EdgeTextDocumentDeclaration EdgeLabel = "textDocument/declaration" EdgeTextDocumentTypeDefinition EdgeLabel = "textDocument/typeDefinition" EdgeTextDocumentHover EdgeLabel = "textDocument/hover" EdgeTextDocumentReferences EdgeLabel = "textDocument/references" EdgeTextDocumentImplementation EdgeLabel = "textDocument/implementation" )
type Element ¶
type Element struct { ID uint64 `json:"id"` Type ElementType `json:"type"` }
type ElementType ¶
type ElementType string
const ( ElementVertex ElementType = "vertex" ElementEdge ElementType = "edge" )
type HoverResult ¶
type HoverResult struct { Vertex Result hoverResult `json:"result"` }
func NewHoverResult ¶
func NewHoverResult(id uint64, contents []MarkedString) HoverResult
type Item ¶
type Item struct { Edge OutV uint64 `json:"outV"` InVs []uint64 `json:"inVs"` Document uint64 `json:"document"` Property string `json:"property,omitempty"` }
func NewItemOfDefinitions ¶
func NewItemOfReferences ¶
type MarkedString ¶
type MarkedString markedString
func NewMarkedString ¶
func NewMarkedString(s, languageID string) MarkedString
func RawMarkedString ¶
func RawMarkedString(s string) MarkedString
func (MarkedString) MarshalJSON ¶
func (m MarkedString) MarshalJSON() ([]byte, error)
type MetaData ¶
type Moniker ¶
type Moniker struct { Vertex Kind string `json:"kind"` Scheme string `json:"scheme"` Identifier string `json:"identifier"` }
func NewMoniker ¶
type MonikerEdge ¶
func NewMonikerEdge ¶
func NewMonikerEdge(id, outV, inV uint64) MonikerEdge
type NextMonikerEdge ¶
func NewNextMonikerEdge ¶
func NewNextMonikerEdge(id, outV, inV uint64) NextMonikerEdge
type PackageInformation ¶
type PackageInformation struct { Vertex Name string `json:"name"` Manager string `json:"manager"` Version string `json:"version"` }
func NewPackageInformation ¶
func NewPackageInformation(id uint64, name, manager, version string) PackageInformation
type PackageInformationEdge ¶
func NewPackageInformationEdge ¶
func NewPackageInformationEdge(id, outV, inV uint64) PackageInformationEdge
type Project ¶
func NewProject ¶
type ReferenceResult ¶
type ReferenceResult struct {
Vertex
}
type TextDocumentDefinition ¶
func NewTextDocumentDefinition ¶
func NewTextDocumentDefinition(id, outV, inV uint64) TextDocumentDefinition
type TextDocumentHover ¶
func NewTextDocumentHover ¶
func NewTextDocumentHover(id, outV, inV uint64) TextDocumentHover
type TextDocumentReferences ¶
func NewTextDocumentReferences ¶
func NewTextDocumentReferences(id, outV, inV uint64) TextDocumentReferences
type Vertex ¶
type Vertex struct { Element Label VertexLabel `json:"label"` }
type VertexLabel ¶
type VertexLabel string
const ( VertexMetaData VertexLabel = "metaData" VertexProject VertexLabel = "project" VertexRange VertexLabel = "range" VertexLocation VertexLabel = "location" VertexDocument VertexLabel = "document" VertexMoniker VertexLabel = "moniker" VertexPackageInformation VertexLabel = "packageInformation" VertexResultSet VertexLabel = "resultSet" VertexDocumentSymbolResult VertexLabel = "documentSymbolResult" VertexFoldingRangeResult VertexLabel = "foldingRangeResult" VertexDocumentLinkResult VertexLabel = "documentLinkResult" VertexDianosticResult VertexLabel = "diagnosticResult" VertexDeclarationResult VertexLabel = "declarationResult" VertexDefinitionResult VertexLabel = "definitionResult" VertexTypeDefinitionResult VertexLabel = "typeDefinitionResult" VertexHoverResult VertexLabel = "hoverResult" VertexReferenceResult VertexLabel = "referenceResult" VertexImplementationResult VertexLabel = "implementationResult" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.