17 references to Cache
Microsoft.CodeAnalysis.Workspaces (17)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (4)
56
var symbolInfo = state.
Cache
.GetSymbolInfo(node, cancellationToken);
177
=> state.
Cache
.FindMatchingIdentifierTokens(identifier, cancellationToken);
209
state.
Cache
.GetAliasInfo(state.SemanticFacts, token, cancellationToken),
381
var syntaxTreeInfo = state.
Cache
.SyntaxTreeIndex;
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
63
var info = state.
Cache
.SyntaxTreeIndex;
FindSymbols\FindReferences\Finders\ConstructorInitializerSymbolReferenceFinder.cs (1)
72
var tokens = state.
Cache
.GetConstructorInitializerTokens(cancellationToken);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (5)
132
foreach (var localAlias in state.
Cache
.SyntaxTreeIndex.GetAliases(containingTypeName, containingType.Arity))
232
if (!state.
Cache
.SyntaxTreeIndex.ContainsImplicitObjectCreation)
239
var newKeywordTokens = state.
Cache
.GetNewKeywordTokens(cancellationToken);
293
if (!state.
Cache
.SyntaxTreeIndex.ContainsPrimaryConstructorBaseType)
297
foreach (var token in state.
Cache
.FindMatchingIdentifierTokens(symbol.ContainingType.Name, cancellationToken))
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
154
foreach (var localAlias in state.
Cache
.SyntaxTreeIndex.GetAliases(namedType.Name, namedType.Arity))
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (1)
77
foreach (var localAlias in state.
Cache
.SyntaxTreeIndex.GetAliases(symbol.Name, arity: 0))
FindSymbols\FindReferences\FindReferencesDocumentState.cs (3)
24
public Document Document => this.
Cache
.Document;
25
public SyntaxNode Root => this.
Cache
.Root;
26
public SemanticModel SemanticModel => this.
Cache
.SemanticModel;
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
185
var symbolInfo = state.
Cache
.GetSymbolInfo(parent, cancellationToken);