13 references to As
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (13)
Generator.cs (4)
340
lsifJsonWriter.Write(new Item(definitionResultsId.
As
<DefinitionResult, Vertex>(), lazyRangeVertex.Value.GetId(), documentVertex.GetId(), idFactory));
373
lsifJsonWriter.Write(new Item(referenceResultsId.
As
<ReferenceResult, Vertex>(), lazyRangeVertex.Value.GetId(), documentVertex.GetId(), idFactory, property: "definitions"));
378
lsifJsonWriter.Write(new Item(referenceResultsId.
As
<ReferenceResult, Vertex>(), implementedMemberMoniker, documentVertex.GetId(), idFactory, property: "referenceLinks"));
389
lsifJsonWriter.Write(new Item(referenceResultsId.
As
<ReferenceResult, Vertex>(), lazyRangeVertex.Value.GetId(), documentVertex.GetId(), idFactory, property: "references"));
Graph\Edge.cs (4)
51
return new Edge(label, outVertex.
As
<TOutVertex, Vertex>(), inVertex.
As
<TInVertex, Vertex>(), idFactory);
62
inVerticesArray[i] = inVertices[i].
As
<TInVertex, Vertex>();
65
return 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>());