17 references to KeyValuePairUtil
Microsoft.CodeAnalysis.CodeStyle (17)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
160KeyValuePairUtil.Create("discard_variable", UnusedValuePreference.DiscardVariable), 161KeyValuePairUtil.Create("unused_local_variable", UnusedValuePreference.UnusedLocalVariable),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (10)
173KeyValuePairUtil.Create("non_public", UnusedParametersPreference.NonPublicMethods), 174KeyValuePairUtil.Create("all", UnusedParametersPreference.AllMethods), 201KeyValuePairUtil.Create("never", CodeStyle.AccessibilityModifiersRequired.Never), 202KeyValuePairUtil.Create("always", CodeStyle.AccessibilityModifiersRequired.Always), 203KeyValuePairUtil.Create("for_non_interface_members", CodeStyle.AccessibilityModifiersRequired.ForNonInterfaceMembers), 204KeyValuePairUtil.Create("omit_if_default", CodeStyle.AccessibilityModifiersRequired.OmitIfDefault), 247KeyValuePairUtil.Create("always_for_clarity", ParenthesesPreference.AlwaysForClarity), 248KeyValuePairUtil.Create("never_if_unnecessary", ParenthesesPreference.NeverIfUnnecessary), 300KeyValuePairUtil.Create("always", ForEachExplicitCastInSourcePreference.Always), 301KeyValuePairUtil.Create("when_strongly_typed", ForEachExplicitCastInSourcePreference.WhenStronglyTyped),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
128.AddRange(alternativeEntries.Select(static p => KeyValuePairUtil.Create(p.name, p.value)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (3)
25backwardMap: ImmutableDictionary.CreateRange(valueComparer, pairs.Select(static p => KeyValuePairUtil.Create(p.Value, p.Key)))) 30: this(forwardMap: ImmutableDictionary.CreateRange(keyComparer, pairs.Select(static p => KeyValuePairUtil.Create(p.key, p.value))), 31backwardMap: ImmutableDictionary.CreateRange(valueComparer, pairs.Select(static p => KeyValuePairUtil.Create(p.value, p.key))))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
124yield return KeyValuePairUtil.Create(box.Key, box.Value);