1 type derived from Edge
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
Graph\Item.cs (1)
11internal sealed class Item : Edge
2 instantiations of Edge
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (2)
Graph\Edge.cs (2)
51return new Edge(label, outVertex.As<TOutVertex, Vertex>(), inVertex.As<TInVertex, Vertex>(), idFactory); 65return new Edge(label, outVertex.As<TOutVertex, Vertex>(), inVerticesArray, idFactory);
18 references to Edge
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (10)
Generator.cs (7)
187_lsifJsonWriter.Write(Edge.Create("contains", projectVertex.GetId(), documentIds.ToArray(), _idFactory)); 224lsifJsonWriter.Write(Edge.Create("contains", documentVertex.GetId(), rangeVertices, idFactory)); 248lsifJsonWriter.Write(Edge.Create(Methods.TextDocumentFoldingRangeName, documentVertex.GetId(), foldingRangeResult.GetId(), idFactory)); 335lsifJsonWriter.Write(Edge.Create("next", lazyRangeVertex.Value.GetId(), symbolForLinkedResultSetId, idFactory)); 403lsifJsonWriter.Write(Edge.Create(Methods.TextDocumentHoverName, symbolForLinkedResultSetId, hoverResult.GetId(), idFactory)); 453var semanticTokensEdge = Edge.Create(Methods.TextDocumentSemanticTokensFullName, documentVertex.GetId(), semanticTokensResult.GetId(), idFactory);
Graph\Edge.cs (2)
49public static Edge Create<TOutVertex, TInVertex>(string label, Id<TOutVertex> outVertex, Id<TInVertex> inVertex, IdFactory idFactory) where TOutVertex : Vertex where TInVertex : Vertex 54public static Edge Create<TOutVertex, TInVertex>(string label, Id<TOutVertex> outVertex, IList<Id<TInVertex>> inVertices, IdFactory idFactory) where TOutVertex : Vertex where TInVertex : Vertex
ResultSetTracking\SymbolHoldingResultSetTracker.cs (1)
145lsifJsonWriter.Write(Edge.Create(edgeLabel, Id, vertex.GetId(), idFactory));
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (8)
Utilities\TestLsifJsonWriter.vb (7)
19Private ReadOnly _edgesByOutVertex As Dictionary(Of Vertex, List(Of Edge)) = New Dictionary(Of Vertex, List(Of Edge)) 32Dim edge = TryCast(element, Edge) 47Dim edgesForOutVertex As List(Of Edge) = Nothing 49edgesForOutVertex = New List(Of Edge)(capacity:=1) 75Public Function GetLinkedVertices(Of T As Vertex)(vertex As Graph.Vertex, predicate As Func(Of Edge, Boolean)) As ImmutableArray(Of T) 79Dim edges As List(Of Edge) = Nothing
Utilities\TestLsifOutput.vb (1)
69Public Function GetLinkedVertices(Of T As Vertex)(vertex As Graph.Vertex, predicate As Func(Of Edge, Boolean)) As ImmutableArray(Of T)