85 references to KeyValuePairUtil
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Workspaces (20)
CSharpFormattingOptions2.cs (20)
29KeyValuePairUtil.Create("expressions", SpacePlacementWithinParentheses.Expressions),
30KeyValuePairUtil.Create("type_casts", SpacePlacementWithinParentheses.TypeCasts),
31KeyValuePairUtil.Create("control_flow_statements", SpacePlacementWithinParentheses.ControlFlowStatements),
36KeyValuePairUtil.Create("ignore", BinaryOperatorSpacingOptions.Ignore),
37KeyValuePairUtil.Create("none", BinaryOperatorSpacingOptions.Remove),
38KeyValuePairUtil.Create("before_and_after", BinaryOperatorSpacingOptions.Single),
43KeyValuePairUtil.Create("flush_left", LabelPositionOptions.LeftMost),
44KeyValuePairUtil.Create("no_change", LabelPositionOptions.NoIndent),
45KeyValuePairUtil.Create("one_less_than_current", LabelPositionOptions.OneLess),
50KeyValuePairUtil.Create("object_collection_array_initalizers", NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers),
55KeyValuePairUtil.Create("all", NewLineBeforeOpenBracePlacement.All),
56KeyValuePairUtil.Create("accessors", NewLineBeforeOpenBracePlacement.Accessors),
57KeyValuePairUtil.Create("types", NewLineBeforeOpenBracePlacement.Types),
58KeyValuePairUtil.Create("methods", NewLineBeforeOpenBracePlacement.Methods),
59KeyValuePairUtil.Create("properties", NewLineBeforeOpenBracePlacement.Properties),
60KeyValuePairUtil.Create("anonymous_methods", NewLineBeforeOpenBracePlacement.AnonymousMethods),
61KeyValuePairUtil.Create("control_blocks", NewLineBeforeOpenBracePlacement.ControlBlocks),
62KeyValuePairUtil.Create("anonymous_types", NewLineBeforeOpenBracePlacement.AnonymousTypes),
63KeyValuePairUtil.Create("object_collection_array_initializers", NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers),
64KeyValuePairUtil.Create("lambdas", NewLineBeforeOpenBracePlacement.LambdaExpressionBody),
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (23)
CodeStyleOptions2.cs (10)
164KeyValuePairUtil.Create("non_public", UnusedParametersPreference.NonPublicMethods),
165KeyValuePairUtil.Create("all", UnusedParametersPreference.AllMethods),
192KeyValuePairUtil.Create("never", CodeStyle.AccessibilityModifiersRequired.Never),
193KeyValuePairUtil.Create("always", CodeStyle.AccessibilityModifiersRequired.Always),
194KeyValuePairUtil.Create("for_non_interface_members", CodeStyle.AccessibilityModifiersRequired.ForNonInterfaceMembers),
195KeyValuePairUtil.Create("omit_if_default", CodeStyle.AccessibilityModifiersRequired.OmitIfDefault),
238KeyValuePairUtil.Create("always_for_clarity", ParenthesesPreference.AlwaysForClarity),
239KeyValuePairUtil.Create("never_if_unnecessary", ParenthesesPreference.NeverIfUnnecessary),
288KeyValuePairUtil.Create("always", ForEachExplicitCastInSourcePreference.Always),
289KeyValuePairUtil.Create("when_strongly_typed", ForEachExplicitCastInSourcePreference.WhenStronglyTyped),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (17)
Differencing\MatchTests.cs (8)
27new[] { KeyValuePairUtil.Create(x1, x2), KeyValuePairUtil.Create(x1, x2) });
31Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, new[] { KeyValuePairUtil.Create(x1, x1) }));
33Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, new[] { KeyValuePairUtil.Create(x1, x2), KeyValuePairUtil.Create(x1, new TestNode(0, 0)) }));
51KeyValuePairUtil.Create(x1, x2),
52KeyValuePairUtil.Create(y1, x2),
77KeyValuePairUtil.Create(x1, newRoot),
WorkspaceServiceTests\GlobalOptionServiceTests.cs (6)
42ImmutableArray.Create(KeyValuePairUtil.Create(optionKey, (object?)2)));
48ImmutableArray.Create(KeyValuePairUtil.Create(optionKey, (object?)3)));
127ImmutableArray.Create(KeyValuePairUtil.Create(new OptionKey2(FormattingOptions2.NewLine, "lang"), (object?)"NEW_LINE")),
185KeyValuePairUtil.Create(new OptionKey2(option1), (object?)5),
186KeyValuePairUtil.Create(new OptionKey2(option2), (object?)6),
187KeyValuePairUtil.Create(new OptionKey2(option3), (object?)3)));
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)