12 types derived from Vertex
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (12)
Graph\Capabilities.cs (1)
13internal sealed class Capabilities : Vertex
Graph\DefinitionResult.cs (1)
10internal sealed class DefinitionResult : Vertex
Graph\Event.cs (1)
12internal sealed class Event : Vertex
Graph\FoldingRangeResult.cs (1)
13internal sealed class FoldingRangeResult : Vertex
Graph\HoverResult.cs (1)
13internal sealed class HoverResult : Vertex
Graph\LsifDocument.cs (1)
12internal sealed class LsifDocument : Vertex
Graph\LsifProject.cs (1)
12internal sealed class LsifProject : Vertex
Graph\Moniker.cs (1)
7internal sealed class Moniker : Vertex
Graph\Range.cs (1)
13internal sealed class Range : Vertex
Graph\ReferenceResult.cs (1)
10internal sealed class ReferenceResult : Vertex
Graph\ResultSet.cs (1)
10internal sealed class ResultSet : Vertex
Graph\SemanticTokensResult.cs (1)
13internal sealed class SemanticTokensResult : Vertex
45 references to Vertex
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (32)
Generator.cs (4)
340lsifJsonWriter.Write(new Item(definitionResultsId.As<DefinitionResult, Vertex>(), lazyRangeVertex.Value.GetId(), documentVertex.GetId(), idFactory)); 373lsifJsonWriter.Write(new Item(referenceResultsId.As<ReferenceResult, Vertex>(), lazyRangeVertex.Value.GetId(), documentVertex.GetId(), idFactory, property: "definitions")); 378lsifJsonWriter.Write(new Item(referenceResultsId.As<ReferenceResult, Vertex>(), implementedMemberMoniker, documentVertex.GetId(), idFactory, property: "referenceLinks")); 389lsifJsonWriter.Write(new Item(referenceResultsId.As<ReferenceResult, Vertex>(), lazyRangeVertex.Value.GetId(), documentVertex.GetId(), idFactory, property: "references"));
Graph\Edge.cs (17)
17public Id<Vertex> OutVertex { get; } 23public Id<Vertex>? InVertex { get; } 26public Id<Vertex>[]? InVertices { get; } 28public IEnumerable<Id<Vertex>> GetInVerticies() => InVertices ?? SpecializedCollections.SingletonEnumerable(InVertex!.Value); 30public Edge(string label, Id<Vertex> outVertex, Id<Vertex> inVertex, IdFactory idFactory) 39public Edge(string label, Id<Vertex> outVertex, Id<Vertex>[] inVertices, IdFactory idFactory) 49public static Edge Create<TOutVertex, TInVertex>(string label, Id<TOutVertex> outVertex, Id<TInVertex> inVertex, IdFactory idFactory) where TOutVertex : Vertex where TInVertex : Vertex 51return new Edge(label, outVertex.As<TOutVertex, Vertex>(), inVertex.As<TInVertex, Vertex>(), idFactory); 54public static Edge Create<TOutVertex, TInVertex>(string label, Id<TOutVertex> outVertex, IList<Id<TInVertex>> inVertices, IdFactory idFactory) where TOutVertex : Vertex where TInVertex : Vertex 56var inVerticesArray = new Id<Vertex>[inVertices.Count]; 62inVerticesArray[i] = inVertices[i].As<TInVertex, Vertex>(); 65return new Edge(label, outVertex.As<TOutVertex, Vertex>(), inVerticesArray, idFactory);
Graph\Item.cs (4)
16public Item(Id<Vertex> outVertex, Id<Range> range, Id<LsifDocument> document, IdFactory idFactory, string? property = null) 17: base(label: "item", outVertex, new[] { range.As<Range, Vertex>() }, idFactory) 23public Item(Id<Vertex> outVertex, Id<Moniker> moniker, Id<LsifDocument> document, IdFactory idFactory, string? property = null) 24: base(label: "item", outVertex, new[] { moniker.As<Moniker, Vertex>() }, idFactory)
ResultSetTracking\DelegatingResultSetTracker.cs (1)
19public Id<T> GetResultIdForSymbol<T>(ISymbol symbol, string edgeKind, Func<IdFactory, T> vertexCreator) where T : Vertex
ResultSetTracking\IResultSetTracker.cs (1)
24Id<T> GetResultIdForSymbol<T>(ISymbol symbol, string edgeKind, Func<IdFactory, T> vertexCreator) where T : Vertex;
ResultSetTracking\SymbolHoldingResultSetTracker.cs (5)
88public Id<T> GetResultIdForSymbol<T>(ISymbol symbol, string edgeKind, Func<IdFactory, T> vertexCreator) where T : Vertex 118private readonly Dictionary<string, Id<Vertex>?> _edgeKindToVertexId = new Dictionary<string, Id<Vertex>?>(); 125public Id<T> GetResultId<T>(string edgeLabel, Func<IdFactory, T> vertexCreator, ILsifJsonWriter lsifJsonWriter, IdFactory idFactory) where T : Vertex 142_edgeKindToVertexId.Add(edgeLabel, vertex.GetId().As<T, Vertex>());
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (13)
Utilities\TestLsifJsonWriter.vb (8)
19Private ReadOnly _edgesByOutVertex As Dictionary(Of Vertex, List(Of Edge)) = New Dictionary(Of Vertex, List(Of Edge)) 68Public Function GetLinkedVertices(Of T As Vertex)(vertex As Graph.Vertex, edgeLabel As String) As ImmutableArray(Of T) 75Public Function GetLinkedVertices(Of T As Vertex)(vertex As Graph.Vertex, predicate As Func(Of Edge, Boolean)) As ImmutableArray(Of T) 94Public ReadOnly Property Vertices As ImmutableArray(Of Vertex) 97Return _elementsById.Values.OfType(Of Vertex).ToImmutableArray()
Utilities\TestLsifOutput.vb (5)
69Public Function GetLinkedVertices(Of T As Vertex)(vertex As Graph.Vertex, predicate As Func(Of Edge, Boolean)) As ImmutableArray(Of T) 76Public Function GetLinkedVertices(Of T As Vertex)(vertex As Graph.Vertex, edgeLabel As String) As ImmutableArray(Of T) 80Public ReadOnly Property Vertices As IEnumerable(Of Vertex)