13 references to As
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (13)
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 (4)
51return new Edge(label, outVertex.As<TOutVertex, Vertex>(), inVertex.As<TInVertex, Vertex>(), idFactory); 62inVerticesArray[i] = inVertices[i].As<TInVertex, Vertex>(); 65return new Edge(label, outVertex.As<TOutVertex, Vertex>(), inVerticesArray, idFactory);
Graph\Event.cs (2)
27: this(kind, "project", data.As<LsifProject, Element>(), idFactory) 32: this(kind, "document", data.As<LsifDocument, Element>(), idFactory)
Graph\Item.cs (2)
17: base(label: "item", outVertex, new[] { range.As<Range, Vertex>() }, idFactory) 24: base(label: "item", outVertex, new[] { moniker.As<Moniker, Vertex>() }, idFactory)
ResultSetTracking\SymbolHoldingResultSetTracker.cs (1)
142_edgeKindToVertexId.Add(edgeLabel, vertex.GetId().As<T, Vertex>());