Implemented interface member:
97 references to Keys
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
890Assert.Equal("my_prop", properties.Keys.Single());
Microsoft.CodeAnalysis (4)
Compilation\DeterministicKeyBuilder.cs (1)
463foreach (var key in options.SpecificDiagnosticOptions.Keys.OrderBy(StringComparer.Ordinal))
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
28=> Options.Keys;
InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (2)
71return _map.Keys.GetEnumerator(); 76return _map.Keys.GetEnumerator();
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
28=> Options.Keys;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
84public IEnumerable<TKey> Keys => _forwardMap.Keys; 86public IEnumerable<TValue> Values => _backwardMap.Keys;
Microsoft.CodeAnalysis.CSharp (3)
Binder\ImportChain.cs (1)
99aliases.AddRange(aliasSymbols.Keys);
Compilation\SyntaxAndDeclarationManager.LazyState.cs (1)
56Debug.Assert(syntaxTrees.SetEquals(rootNamespaces.Keys.AsImmutable(), EqualityComparer<SyntaxTree>.Default));
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
46foreach (var analyzedNode in verifier._analyzedNullabilityMap.Keys)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
199if (!assignmentValues.Keys.SetEquals(properties) || 256var assignedUnderlyingFields = assignmentValues.Keys.SelectAsArray(UnwrapPropertyToField);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
199if (!assignmentValues.Keys.SetEquals(properties) || 256var assignedUnderlyingFields = assignmentValues.Keys.SelectAsArray(UnwrapPropertyToField);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
SourceGeneration\GeneratorDriverTests.cs (12)
3164Assert.Contains(WellKnownGeneratorInputs.Compilation, runResult.TrackedSteps.Keys); 3165Assert.Contains(WellKnownGeneratorInputs.AnalyzerConfigOptions, runResult.TrackedSteps.Keys); 3166Assert.Contains(WellKnownGeneratorInputs.ParseOptions, runResult.TrackedSteps.Keys); 3167Assert.Contains(WellKnownGeneratorInputs.AdditionalTexts, runResult.TrackedSteps.Keys); 3168Assert.Contains(WellKnownGeneratorInputs.MetadataReferences, runResult.TrackedSteps.Keys); 3171Assert.Contains("Syntax", runResult.TrackedSteps.Keys); 3174Assert.Contains(WellKnownGeneratorOutputs.SourceOutput, runResult.TrackedSteps.Keys); 3175Assert.Contains(WellKnownGeneratorOutputs.ImplementationSourceOutput, runResult.TrackedSteps.Keys); 3177Assert.Contains(WellKnownGeneratorOutputs.SourceOutput, runResult.TrackedOutputSteps.Keys); 3178Assert.Contains(WellKnownGeneratorOutputs.ImplementationSourceOutput, runResult.TrackedOutputSteps.Keys); 3210result => Assert.Contains(WellKnownGeneratorInputs.AdditionalTexts, result.TrackedSteps.Keys)); 4562Assert.Equal(2, result.HostOutputs.Keys.Count());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
CompleteStatement\AbstractCompleteStatementTests.cs (1)
54Contract.ThrowIfFalse(spans.Keys.ToArray() is [""]);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Collections\Immutable\Maps\MapTests.cs (1)
46Assert.Equal(5, map.Keys.Count());
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
152var projects = projectsAndDiagnosticsToFixMap.Keys;
EmbeddedLanguages\AbstractEmbeddedLanguageFeatureService.cs (1)
78var languageIdentifiers = _identifierToServices.Keys.ToImmutableArray();
Microsoft.CodeAnalysis.LanguageServer (1)
BrokeredServices\BrokeredServiceBridgeProvider.cs (1)
72using (container.ProfferRemoteBroker(remoteClient, bridgeMxStream, ServiceSource.OtherProcessOnSameMachine, Descriptors.RemoteServicesToRegister.Keys.ToImmutableHashSet()))
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
121var hasOpenSourceGeneratedDocuments = _lspWorkspaceManager.GetTrackedLspText().Keys.Any(uri => uri.Scheme == SourceGeneratedDocumentUri.Scheme);
Workspaces\LspWorkspaceManager.cs (2)
394var documentsInWorkspace = GetDocumentsForUris(_trackedDocuments.Keys.ToImmutableArray(), workspaceCurrentSolution); 396_trackedDocuments.Keys.Where(static uri => uri.Scheme == SourceGeneratedDocumentUri.Scheme)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationTestDataExtensions.cs (1)
62var keys = map.Keys.Where(k => k.StartsWith(qualifiedMethodName + "(", StringComparison.Ordinal));
Microsoft.CodeAnalysis.UnitTests (36)
Analyzers\AnalyzerConfigTests.cs (5)
1591Assert.Equal("cs000", options[0].TreeOptions.Keys.Single()); 1593Assert.Same(options[0].TreeOptions.Keys.First(), options[1].TreeOptions.Keys.First()); 1594Assert.Same(options[1].TreeOptions.Keys.First(), options[2].TreeOptions.Keys.First());
CommonCommandLineParserTests.cs (31)
410Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 412Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 414Assert.Contains("CA1014", ruleSet.SpecificDiagnosticOptions.Keys); 416Assert.Contains("CA1015", ruleSet.SpecificDiagnosticOptions.Keys); 418Assert.Contains("CA1016", ruleSet.SpecificDiagnosticOptions.Keys); 477Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 502Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 504Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 530Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 532Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 558Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 560Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 587Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 589Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 625Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 627Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 663Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 665Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 667Assert.Contains("CA1014", ruleSet.SpecificDiagnosticOptions.Keys); 693Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 729Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 763Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 766Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 790Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 792Assert.DoesNotContain("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 814Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 816Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 886Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 888Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 911Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 913Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (1)
440Debug.Assert(syntaxTrees.SetEquals(rootNamespaces.Keys.AsImmutable(), EqualityComparer(Of SyntaxTree).Default))
Compilation\VisualBasicDiagnosticFilter.vb (1)
70caseInsensitiveSpecificDiagnosticOptions.Keys.Contains(VisualBasic.MessageProvider.Instance.GetIdForErrorCode(ERRID.WRN_AssemblyGeneration1))) Then
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
150Dim symbolName = _conditionalsMap.Keys.First(Function(key) IdentifierComparison.Equals(key, conditionalSymbolName))
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\DiagnosticAnalysisResult.cs (4)
307documents = documents.Concat(syntaxLocals.Keys); 312documents = documents.Concat(semanticLocals.Keys); 317documents = documents.Concat(nonLocals.Keys); 326foreach (var documentId in map.Keys)
src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
28=> Options.Keys;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
84public IEnumerable<TKey> Keys => _forwardMap.Keys; 86public IEnumerable<TValue> Values => _backwardMap.Keys;
Workspace\Solution\ProjectDependencyGraph.cs (2)
472Debug.Assert(referencesMap.Keys.All(projectIds.Contains)); 494Debug.Assert(reverseReferencesMap.Keys.All(projectIds.Contains));
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (2)
126foreach (var projectIdToUpdate in existingTransitiveReferencesMap.Keys) 174foreach (var projectIdToUpdate in existingReverseTransitiveReferencesMap.Keys)
Workspace\Solution\SolutionState.cs (2)
160Debug.Assert(ProjectStates.Keys.SetEquals(ProjectIds)); 161Debug.Assert(ProjectStates.Keys.SetEquals(_dependencyGraph.ProjectIds));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (2)
71return _map.Keys.GetEnumerator(); 76return _map.Keys.GetEnumerator();
Microsoft.DotNet.Build.Tasks.Feed (3)
src\model\SetupTargetFeedConfigV3.cs (3)
247foreach (var prefix in FeedOverrides.Keys.OrderByDescending(f => f.Length)) 260foreach (var prefix in FeedSasUris.Keys.OrderByDescending(f => f.Length)) 273foreach (var prefix in FeedKeys.Keys.OrderByDescending(f => f.Length))
Microsoft.VisualStudio.LanguageServices (3)
ColorSchemes\ColorSchemeApplier.ClassificationVerifier.cs (3)
86var coreClassifications = DarkThemeForeground.Keys.Concat(BlueLightThemeForeground.Keys).Distinct(); 87var colorSchemeClassifications = _colorSchemes.Values.SelectMany(scheme => scheme.Values.SelectMany(theme => theme.Keys)).Distinct();
RunTests (1)
AssemblyScheduler.cs (1)
169var unmatchedRemoteTests = testHistory.Keys.Where(type => !matchedRemoteTests.Contains(type));