This repository was archived by the owner on Mar 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathelement.go
More file actions
67 lines (58 loc) · 2.45 KB
/
element.go
File metadata and controls
67 lines (58 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package protocol
type Element struct {
ID uint64 `json:"id"`
Type ElementType `json:"type"`
}
type ElementType string
const (
ElementVertex ElementType = "vertex"
ElementEdge ElementType = "edge"
)
type Vertex struct {
Element
Label VertexLabel `json:"label"`
}
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"
)
type Edge struct {
Element
Label EdgeLabel `json:"label"`
}
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"
)