Implemented interface members:
239 references to ContainsKey
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
54 => lValueFlowCaptures.ContainsKey (captureId);
Microsoft.Build (3)
Collections\CopyOnWritePropertyDictionary.cs (2)
116public bool Contains(string name) => _backing.ContainsKey(name); 258bool IDictionary<string, T>.ContainsKey(string key) => _backing.ContainsKey(key);
CopyOnWriteDictionary.cs (1)
228return _backing.ContainsKey(key);
Microsoft.Build.Tasks.Core (1)
CopyOnWriteDictionary.cs (1)
228return _backing.ContainsKey(key);
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
228return _backing.ContainsKey(key);
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfig.cs (1)
119internal bool IsGlobal => _hasGlobalFileName || GlobalSection.Properties.ContainsKey(GlobalKey);
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (1)
53if (compilation.Options.SpecificDiagnosticOptions.ContainsKey(descriptor.Id) ||
InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (2)
33return _map.ContainsKey(value); 39if (_map.ContainsKey(value))
Operations\ControlFlowGraph.cs (1)
58Debug.Assert(localFunctionsMap.ContainsKey(method));
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
318return diagnostic.Properties.ContainsKey(IsUnusedLocalAssignmentKey); 324return diagnostic.Properties.ContainsKey(IsRemovableAssignmentKey);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (1)
100=> diagnostic.Properties.ContainsKey(ChangesSemanticsName);
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
100if (!_binaryToAssignmentMap.ContainsKey(binaryKind))
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
37Debug.Assert(binaryToAssignmentMap.Values.All(assignmentToTokenMap.ContainsKey));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
458=> LValueFlowCapturesInGraph.ContainsKey(captureId);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
48=> _forwardMap.ContainsKey(key); 51=> _backwardMap.ContainsKey(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
27if (!other.ContainsKey(key)) 37if (!self.ContainsKey(key))
Microsoft.CodeAnalysis.CodeStyle.Fixes (18)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
34var (title, key) = diagnostic.Properties.ContainsKey(AddAccessibilityModifiersConstants.ModifiersAdded)
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
27=> diagnostic.Properties.ContainsKey(AddRequiredParenthesesConstants.IncludeInFixAll) &&
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
32if (context.Diagnostics.First().Properties.ContainsKey(ForEachCastHelpers.IsFixable)) 41=> diagnostic.Properties.ContainsKey(ForEachCastHelpers.IsFixable);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (2)
58if (properties.ContainsKey(RedundantEqualityConstants.Negate)) 67if (properties.ContainsKey(RedundantEqualityConstants.Negate))
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
33if (diagnostic.Properties?.ContainsKey(AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.DocCommentIdKey) == true &&
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
78var useCollectionExpression = properties.ContainsKey(UseCollectionInitializerHelpers.UseCollectionExpressionName) is true;
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (2)
78if (diagnostic.Properties.ContainsKey(UseCompoundAssignmentUtilities.Increment)) 81if (diagnostic.Properties.ContainsKey(UseCompoundAssignmentUtilities.Decrement))
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
46var (title, key) = context.Diagnostics.First().Properties.ContainsKey(UseConditionalExpressionHelpers.CanSimplifyName)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
39var (title, key) = context.Diagnostics.First().Properties.ContainsKey(UseConditionalExpressionHelpers.CanSimplifyName)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (3)
40var negated = diagnostic.Properties.ContainsKey(UseIsNullConstants.Negated); 65var negate = diagnostic.Properties.ContainsKey(UseIsNullConstants.Negated); 66var isUnconstrainedGeneric = diagnostic.Properties.ContainsKey(UseIsNullConstants.UnconstrainedGeneric);
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (3)
76return firstDiagnostic.Properties.ContainsKey(UseNullPropagationHelpers.IsTrivialNullableValueAccess); 128var whenPartIsNullable = diagnostic.Properties.ContainsKey(UseNullPropagationHelpers.WhenPartIsNullable); 173var whenPartIsNullable = diagnostic.Properties.ContainsKey(UseNullPropagationHelpers.WhenPartIsNullable);
Microsoft.CodeAnalysis.CSharp (10)
Binder\DecisionDagBuilder.cs (1)
1485Debug.Assert(state.RemainingValues.ContainsKey(s1LengthTemp));
Compilation\CSharpCompilation.cs (2)
830return syntaxTree != null && _syntaxAndDeclarations.GetLazyState().RootNamespaces.ContainsKey(syntaxTree); 2521if (!_syntaxAndDeclarations.GetLazyState().RootNamespaces.ContainsKey(syntaxTree))
Compilation\SyntaxAndDeclarationManager.cs (1)
578Debug.Assert(ordinalMap.ContainsKey(oldTree)); // Checked by RemoveSyntaxTreeFromDeclarationMapAndTable
FlowAnalysis\NullableWalker.DebugVerifier.cs (3)
58if (!verifier._analyzedNullabilityMap.ContainsKey(verifiedNode)) 71RoslynDebug.Assert(!_analyzedNullabilityMap.ContainsKey(expression), $"Found unexpected {expression} `{expression.Syntax}` in the map."); 75RoslynDebug.Assert(_analyzedNullabilityMap.ContainsKey(expression), $"Did not find {expression} `{expression.Syntax}` in the map.");
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
366!globalAliasesMap.ContainsKey(externAlias.Alias.Name) && // If we have a global alias with the same name declared in the same compilation unit, we already reported the conflict on the global alias. 367mergedAliases.ContainsKey(externAlias.Alias.Name)) 680if (usingAliasesMap?.ContainsKey(identifierValueText) ?? globalUsingAliasesMap.ContainsKey(identifierValueText))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
36=> !diagnostic.Properties.ContainsKey(WellKnownDiagnosticTags.Unnecessary);
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
48=> diagnostic.Properties.ContainsKey(CSharpRemoveUnreachableCodeDiagnosticAnalyzer.IsSubsequentSection);
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (2)
37diagnostic.Properties.ContainsKey(UseExpressionBodyDiagnosticAnalyzer.FixesError); 83var useExpressionBody = diagnostic.Properties.ContainsKey(nameof(UseExpressionBody));
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
42var negated = diagnostic.Properties.ContainsKey(UseIsNullConstants.Negated);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
3717Assert.True(diagnostics.ContainsKey(analyzer)); 3724Assert.False(diagnostics.ContainsKey(analyzer));
Microsoft.CodeAnalysis.CSharp.Features (9)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
36=> !diagnostic.Properties.ContainsKey(WellKnownDiagnosticTags.Unnecessary);
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
48=> diagnostic.Properties.ContainsKey(CSharpRemoveUnreachableCodeDiagnosticAnalyzer.IsSubsequentSection);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (2)
43var unwrapArgument = properties.ContainsKey(UnwrapArgument); 44var useSpread = properties.ContainsKey(UseSpread);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (2)
42var unwrapArgument = properties.ContainsKey(UnwrapArgument); 43var useSpread = properties.ContainsKey(UseSpread);
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (2)
37diagnostic.Properties.ContainsKey(UseExpressionBodyDiagnosticAnalyzer.FixesError); 83var useExpressionBody = diagnostic.Properties.ContainsKey(nameof(UseExpressionBody));
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
42var negated = diagnostic.Properties.ContainsKey(UseIsNullConstants.Negated);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (16)
124Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 971Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1007Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1438Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1485Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1531Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1565Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1577Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1613Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1627Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1666Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1679Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1725Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1742Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1777Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")); 1790Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute"));
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (17)
111Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 136Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 487Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 514Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 642Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 670Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 698Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 726Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 753Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 780Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 899Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 927Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 1026Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1066Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")); 1206Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 1420Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")); 1465Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute"));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
212var shouldCheckTrivia = _stringAndCommentTextSpans.ContainsKey(token.Span); 521return _renameLocations.ContainsKey(token.Span);
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
124if (projectCountByLanguage.ContainsKey(language))
InlineRename\AbstractEditorInlineRenameService.InlineRenameReplacementInfo.cs (1)
49return locationsForDocument.Where(loc => modifiedSpans.ContainsKey(loc.ConflictCheckSpan))
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
626if (!newTagTrees.ContainsKey(oldBuffer))
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
140=> _projectReferences.ContainsKey(filePath);
Microsoft.CodeAnalysis.Features (38)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionCodeFixProvider.cs (1)
51var commentContents = diagnostic.Properties.ContainsKey(AbstractJsonDetectionAnalyzer.StrictKey)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (2)
855=> _captureNumbersToSpan.ContainsKey(value); 858=> _captureNamesToSpan.ContainsKey(value);
FindUsages\DefinitionItem.cs (3)
139if (Properties.ContainsKey(MetadataSymbolKey)) 141Contract.ThrowIfFalse(Properties.ContainsKey(MetadataSymbolOriginatingProjectIdGuid)); 142Contract.ThrowIfFalse(Properties.ContainsKey(MetadataSymbolOriginatingProjectIdDebugName));
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
40if (Properties.ContainsKey(NonNavigable))
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (2)
33if (diagnostic.Properties.ContainsKey(PreferFrameworkTypeConstants.PreferFrameworkType)) 69=> diagnostic.Properties.ContainsKey(PreferFrameworkTypeConstants.PreferFrameworkType);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
318return diagnostic.Properties.ContainsKey(IsUnusedLocalAssignmentKey); 324return diagnostic.Properties.ContainsKey(IsRemovableAssignmentKey);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (1)
100=> diagnostic.Properties.ContainsKey(ChangesSemanticsName);
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
37Debug.Assert(binaryToAssignmentMap.Values.All(assignmentToTokenMap.ContainsKey));
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
34var (title, key) = diagnostic.Properties.ContainsKey(AddAccessibilityModifiersConstants.ModifiersAdded)
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
27=> diagnostic.Properties.ContainsKey(AddRequiredParenthesesConstants.IncludeInFixAll) &&
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
32if (context.Diagnostics.First().Properties.ContainsKey(ForEachCastHelpers.IsFixable)) 41=> diagnostic.Properties.ContainsKey(ForEachCastHelpers.IsFixable);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (2)
58if (properties.ContainsKey(RedundantEqualityConstants.Negate)) 67if (properties.ContainsKey(RedundantEqualityConstants.Negate))
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (5)
66if (diagnostic.Properties.ContainsKey(Negate)) 70if (diagnostic.Properties.ContainsKey(Or)) 72var right = diagnostic.Properties.ContainsKey(WhenTrue) ? whenTrue : whenFalse; 75else if (diagnostic.Properties.ContainsKey(And)) 77var right = diagnostic.Properties.ContainsKey(WhenTrue) ? whenTrue : whenFalse;
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
33if (diagnostic.Properties?.ContainsKey(AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.DocCommentIdKey) == true &&
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
78var useCollectionExpression = properties.ContainsKey(UseCollectionInitializerHelpers.UseCollectionExpressionName) is true;
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (2)
78if (diagnostic.Properties.ContainsKey(UseCompoundAssignmentUtilities.Increment)) 81if (diagnostic.Properties.ContainsKey(UseCompoundAssignmentUtilities.Decrement))
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
46var (title, key) = context.Diagnostics.First().Properties.ContainsKey(UseConditionalExpressionHelpers.CanSimplifyName)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
39var (title, key) = context.Diagnostics.First().Properties.ContainsKey(UseConditionalExpressionHelpers.CanSimplifyName)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (3)
40var negated = diagnostic.Properties.ContainsKey(UseIsNullConstants.Negated); 65var negate = diagnostic.Properties.ContainsKey(UseIsNullConstants.Negated); 66var isUnconstrainedGeneric = diagnostic.Properties.ContainsKey(UseIsNullConstants.UnconstrainedGeneric);
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (3)
76return firstDiagnostic.Properties.ContainsKey(UseNullPropagationHelpers.IsTrivialNullableValueAccess); 128var whenPartIsNullable = diagnostic.Properties.ContainsKey(UseNullPropagationHelpers.WhenPartIsNullable); 173var whenPartIsNullable = diagnostic.Properties.ContainsKey(UseNullPropagationHelpers.WhenPartIsNullable);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
99var isTrivialGetAccessor = diagnostic.Properties.ContainsKey(IsTrivialGetAccessor); 100var isTrivialSetAccessor = diagnostic.Properties.ContainsKey(IsTrivialSetAccessor);
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Features\CodeFixes\CodeFixService.cs (2)
94if (hasWorkspaceFixers && workspaceFixersMap!.ContainsKey(id)) 97return projectFixersMap.ContainsKey(id);
Handler\RequestContext.cs (2)
319Contract.ThrowIfFalse(_trackedDocuments.ContainsKey(documentUri), $"Attempted to get text for {documentUri} which is not open."); 354=> _trackedDocuments.ContainsKey(documentUri);
Workspaces\LspWorkspaceManager.cs (3)
159Contract.ThrowIfTrue(_trackedDocuments.ContainsKey(uri), $"didOpen received for {uri} which is already open."); 193Contract.ThrowIfFalse(_trackedDocuments.ContainsKey(uri), $"didClose received for {uri} which is not open."); 237Contract.ThrowIfFalse(_trackedDocuments.ContainsKey(uri), $"didChange received for {uri} which is not open.");
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\VisualBasicCompilation.vb (4)
910Return syntaxTree IsNot Nothing AndAlso _rootNamespaces.ContainsKey(syntaxTree) 956If declMap.ContainsKey(tree) Then 1099If declMap.ContainsKey(vbNewTree) Then 1115Debug.Assert(ordinalMap.ContainsKey(oldTree)) ' Checked by RemoveSyntaxTreeFromDeclarationMapAndTable
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
2841Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions.ContainsKey("CA1012")) 2843Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions.ContainsKey("CA1013")) 2845Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions.ContainsKey("CA1014"))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (47)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (18)
172Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 528Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 567Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 606Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 646Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 913Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 960Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1006Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1040Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 1052Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1089Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 1102Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1142Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 1154Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1200Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 1219Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1254Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttributeWithMetadataName")) 1269Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute"))
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (29)
117Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 142Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 490Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 517Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 547Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 578Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 608Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 638Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 666Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 694Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 722Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 749Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 776Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 970Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 998Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 1093Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1133Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1171Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1215Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1246Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 1257Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1299Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1329Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 1337Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1369Assert.False(runResult.TrackedSteps.ContainsKey("result_ForAttribute")) 1375Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1419Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1462Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute")) 1515Assert.False(runResult.TrackedSteps.ContainsKey("individualFileGlobalAliases_ForAttribute"))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
391Return Me._renameLocations.ContainsKey(token.Span) 419Dim shouldCheckTrivia = Me._stringAndCommentTextSpans.ContainsKey(oldToken.Span)
Microsoft.CodeAnalysis.Workspaces (16)
Diagnostics\HostDiagnosticAnalyzers.cs (3)
157=> CreateAnalyzerReferencesMap(projectAnalyzerReferences.Where(reference => !_hostAnalyzerReferencesMap.ContainsKey(reference.Id))); 204if (_compilerDiagnosticAnalyzerMap.ContainsKey(language)) 288if (map1.ContainsKey(referenceIdentity))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
458=> LValueFlowCapturesInGraph.ContainsKey(captureId);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
48=> _forwardMap.ContainsKey(key); 51=> _backwardMap.ContainsKey(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (2)
27if (!other.ContainsKey(key)) 37if (!self.ContainsKey(key))
Workspace\Solution\ProjectDependencyGraph.cs (3)
139if (!_referencesMap.ContainsKey(projectId)) 523Debug.Assert(reverseReferencesMap.ContainsKey(referencedProject)); 533Debug.Assert(forwardReferencesMap.ContainsKey(referencingProject));
Workspace\Solution\SolutionState.cs (2)
266=> projectId != null && ProjectStates.ContainsKey(projectId); 764!ProjectStates.ContainsKey(projectReference.ProjectId))
Workspace\Workspace.cs (3)
426if (!newSolution.SolutionState.ProjectCountByLanguage.ContainsKey(language)) 435if (oldSolution.SolutionState.ProjectCountByLanguage.ContainsKey(language)) 440if (newFallbackOptions.ContainsKey(language))
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
115&& _pathToIndicesMap.ContainsKey(filePath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (2)
33return _map.ContainsKey(value); 39if (_map.ContainsKey(value))
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
48return diagnostic.Properties.ContainsKey(GeneratorDiagnosticProperties.AddDisableRuntimeMarshallingAttribute);
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (2)
68return Modes.ContainsKey(mode) || Modes.ContainsKey(MarshalMode.Default);
ValueEqualityImmutableDictionary.cs (1)
52public bool ContainsKey(T key) => Map.ContainsKey(key);
Microsoft.VisualStudio.LanguageServices (5)
Packaging\PackageInstallerService.ProjectState.cs (1)
32=> IsEnabled && InstalledPackageToVersion.ContainsKey(package);
Packaging\PackageInstallerServiceFactory.cs (1)
317if (installedPackagesMap.ContainsKey(packageName))
ProjectSystem\OpenTextBufferProvider.cs (3)
102if (!_monikerToTextBufferMap.ContainsKey(filePath)) 213if (!_monikerToTextBufferMap.ContainsKey(moniker) && TryGetBufferFromRunningDocumentTable(docCookie, out var buffer)) 249return _monikerToTextBufferMap.ContainsKey(filePath);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (1)
55Assert.False(options.SpecificDiagnosticOptions.ContainsKey("CS1111"));
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (1)
100Assert.False(options.SpecificDiagnosticOptions.ContainsKey("CS1111"));
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
210if (_openedDocs.ContainsKey(moniker))
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ProjectSystemShim\VisualBasicCompilerOptionsTests.vb (1)
199Assert.False(options.SpecificDiagnosticOptions.ContainsKey("BC1234"))
MSBuild (1)
CopyOnWriteDictionary.cs (1)
228return _backing.ContainsKey(key);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
697return this.ContainsKey((TKey)key);