38 references to Create
Microsoft.CodeAnalysis.CodeStyle (17)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
161KeyValuePair.Create("discard_variable", UnusedValuePreference.DiscardVariable), 162KeyValuePair.Create("unused_local_variable", UnusedValuePreference.UnusedLocalVariable),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (10)
173KeyValuePair.Create("non_public", UnusedParametersPreference.NonPublicMethods), 174KeyValuePair.Create("all", UnusedParametersPreference.AllMethods), 201KeyValuePair.Create("never", CodeStyle.AccessibilityModifiersRequired.Never), 202KeyValuePair.Create("always", CodeStyle.AccessibilityModifiersRequired.Always), 203KeyValuePair.Create("for_non_interface_members", CodeStyle.AccessibilityModifiersRequired.ForNonInterfaceMembers), 204KeyValuePair.Create("omit_if_default", CodeStyle.AccessibilityModifiersRequired.OmitIfDefault), 247KeyValuePair.Create("always_for_clarity", ParenthesesPreference.AlwaysForClarity), 248KeyValuePair.Create("never_if_unnecessary", ParenthesesPreference.NeverIfUnnecessary), 300KeyValuePair.Create("always", ForEachExplicitCastInSourcePreference.Always), 301KeyValuePair.Create("when_strongly_typed", ForEachExplicitCastInSourcePreference.WhenStronglyTyped),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
131.AddRange(alternativeEntries.Select(static p => KeyValuePair.Create(p.name, p.value)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (3)
25backwardMap: ImmutableDictionary.CreateRange(valueComparer, pairs.Select(static p => KeyValuePair.Create(p.Value, p.Key)))) 30: this(forwardMap: ImmutableDictionary.CreateRange(keyComparer, pairs.Select(static p => KeyValuePair.Create(p.key, p.value))), 31backwardMap: ImmutableDictionary.CreateRange(valueComparer, pairs.Select(static p => KeyValuePair.Create(p.value, p.key))))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
125yield return KeyValuePair.Create(box.Key, box.Value);
Microsoft.CodeAnalysis.CSharp.CodeStyle (20)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (20)
24KeyValuePair.Create("expressions", SpacePlacementWithinParentheses.Expressions), 25KeyValuePair.Create("type_casts", SpacePlacementWithinParentheses.TypeCasts), 26KeyValuePair.Create("control_flow_statements", SpacePlacementWithinParentheses.ControlFlowStatements), 31KeyValuePair.Create("ignore", BinaryOperatorSpacingOptionsInternal.Ignore), 32KeyValuePair.Create("none", BinaryOperatorSpacingOptionsInternal.Remove), 33KeyValuePair.Create("before_and_after", BinaryOperatorSpacingOptionsInternal.Single), 38KeyValuePair.Create("flush_left", LabelPositionOptionsInternal.LeftMost), 39KeyValuePair.Create("no_change", LabelPositionOptionsInternal.NoIndent), 40KeyValuePair.Create("one_less_than_current", LabelPositionOptionsInternal.OneLess), 45KeyValuePair.Create("object_collection_array_initalizers", NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers), 50KeyValuePair.Create("all", NewLineBeforeOpenBracePlacement.All), 51KeyValuePair.Create("accessors", NewLineBeforeOpenBracePlacement.Accessors), 52KeyValuePair.Create("types", NewLineBeforeOpenBracePlacement.Types), 53KeyValuePair.Create("methods", NewLineBeforeOpenBracePlacement.Methods), 54KeyValuePair.Create("properties", NewLineBeforeOpenBracePlacement.Properties), 55KeyValuePair.Create("anonymous_methods", NewLineBeforeOpenBracePlacement.AnonymousMethods), 56KeyValuePair.Create("control_blocks", NewLineBeforeOpenBracePlacement.ControlBlocks), 57KeyValuePair.Create("anonymous_types", NewLineBeforeOpenBracePlacement.AnonymousTypes), 58KeyValuePair.Create("object_collection_array_initializers", NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers), 59KeyValuePair.Create("lambdas", NewLineBeforeOpenBracePlacement.LambdaExpressionBody),
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\MakeFieldReadonly\MakeFieldReadonlyTests.cs (1)
25private static readonly ParseOptions s_strictFeatureFlag = CSharpParseOptions.Default.WithFeatures([KeyValuePair.Create("strict", "true")]);