Implemented interface members:
22 references to TryGetValue
Microsoft.CodeAnalysis (15)
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
519if (AnalyzerGateMap.TryGetValue(analyzer, out var gate)) 2620if (groupedActions.AnalyzersByKind.TryGetValue(_getKind(node), out var analyzersForKind))
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1050if (nodeActionsByKind.TryGetValue(getKind(node), out var actionsForKind)) 1148if (operationActionsByKind.TryGetValue(operation.Kind, out var actionsForKind))
Emit\EditAndContinue\SymbolMatcher.cs (1)
155if (!newDelegates.TryGetValue(key, out var newValues))
SourceGeneration\Nodes\StateTableStore.cs (1)
21public bool TryGetValue(object key, [NotNullWhen(true)] out IStateTable? table) => _tables.TryGetValue(key, out table);
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (7)
401if (map.TryGetValue(key, out var value)) 421if (map.TryGetValue(key, out var value)) 440if (priorCollection.TryGetValue(key, out var oldValue)) 474if (priorCollection.TryGetValue(key, out var oldValue)) 510if (priorCollection.TryGetValue(key, out var oldValue)) 569if (!priorCollection.TryGetValue(key, out var priorValue) || !valueComparer.Equals(priorValue, comparisonValue)) 596if (!priorCollection.TryGetValue(key, out value))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
185return TryGetValue(pair.Key, out var value)
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
226if (_idToNodeMap.TryGetValue(id, out nodes))
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpCompilation.cs (3)
1102return mappedPathToSyntaxTree.TryGetValue(mappedPath, out var value) ? value : OneOrMany<SyntaxTree>.Empty; 1128return contentHashToSyntaxTree.TryGetValue(contentHash, out var value) ? value : OneOrMany<SyntaxTree>.Empty; 1155return pathToSyntaxTree.TryGetValue(path, out var value) ? value : OneOrMany<SyntaxTree>.Empty;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (3)
484return _otherSynthesizedTypes.AnonymousDelegates.TryGetValue(key, out otherDelegateSymbol); 491return _otherSynthesizedTypes.AnonymousTypes.TryGetValue(typeTemplate.GetAnonymousTypeKey(), out otherType); 500return _otherSynthesizedTypes.AnonymousDelegatesWithIndexedNames.TryGetValue(key, out var otherTypeCandidates) &&
Symbols\NamedTypeSymbol.cs (1)
647if (baseAllRequiredMembers.TryGetValue(member.Name, out var existingMember))