17 references to Create
Microsoft.CodeAnalysis.CodeStyle (17)
src\Compilers\Core\Portable\InternalUtilities\KeyValuePairUtil.cs (1)
22
public static KeyValuePair<TKey, TValue> ToKeyValuePair<TKey, TValue>(this (TKey, TValue) tuple) =>
Create
(tuple.Item1, tuple.Item2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
160
KeyValuePairUtil.
Create
("discard_variable", UnusedValuePreference.DiscardVariable),
161
KeyValuePairUtil.
Create
("unused_local_variable", UnusedValuePreference.UnusedLocalVariable),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (10)
173
KeyValuePairUtil.
Create
("non_public", UnusedParametersPreference.NonPublicMethods),
174
KeyValuePairUtil.
Create
("all", UnusedParametersPreference.AllMethods),
201
KeyValuePairUtil.
Create
("never", CodeStyle.AccessibilityModifiersRequired.Never),
202
KeyValuePairUtil.
Create
("always", CodeStyle.AccessibilityModifiersRequired.Always),
203
KeyValuePairUtil.
Create
("for_non_interface_members", CodeStyle.AccessibilityModifiersRequired.ForNonInterfaceMembers),
204
KeyValuePairUtil.
Create
("omit_if_default", CodeStyle.AccessibilityModifiersRequired.OmitIfDefault),
247
KeyValuePairUtil.
Create
("always_for_clarity", ParenthesesPreference.AlwaysForClarity),
248
KeyValuePairUtil.
Create
("never_if_unnecessary", ParenthesesPreference.NeverIfUnnecessary),
300
KeyValuePairUtil.
Create
("always", ForEachExplicitCastInSourcePreference.Always),
301
KeyValuePairUtil.
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)
25
backwardMap: 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))),
31
backwardMap: ImmutableDictionary.CreateRange(valueComparer, pairs.Select(static p => KeyValuePairUtil.
Create
(p.value, p.key))))