sourcegraph/lib/codeintel/lsif/protocol/reference.go
Eric Fritz 9158fdf0f4
codeintel: Move ./enterprise/lib to ./lib (#20969)
* Move enterprise/lib/codeintel/* to lib.
2021-05-13 19:17:14 -07:00

38 lines
615 B
Go

package protocol
type ReferenceResult struct {
Vertex
}
func NewReferenceResult(id uint64) ResultSet {
return ResultSet{
Vertex: Vertex{
Element: Element{
ID: id,
Type: ElementVertex,
},
Label: VertexReferenceResult,
},
}
}
type TextDocumentReferences struct {
Edge
OutV uint64 `json:"outV"`
InV uint64 `json:"inV"`
}
func NewTextDocumentReferences(id, outV, inV uint64) TextDocumentReferences {
return TextDocumentReferences{
Edge: Edge{
Element: Element{
ID: id,
Type: ElementEdge,
},
Label: EdgeTextDocumentReferences,
},
OutV: outV,
InV: inV,
}
}