26 references to CodeStyleHelpers
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
CSharpCodeStyleOptions.cs (2)
194serializerFactory: CodeStyleHelpers.GetUnusedValuePreferenceSerializer); 200serializerFactory: CodeStyleHelpers.GetUnusedValuePreferenceSerializer);
CSharpCodeStyleOptions_Parsing.cs (8)
18if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification(optionString, 39var notificationString = CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue); 52if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification( 68var notificationString = CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue); 80if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification( 96var notificationString = CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue); 109if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification( 133var notificationString = CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue);
Microsoft.CodeAnalysis.Workspaces (15)
CodeStyleOptions2.cs (8)
175if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification(str, defaultValue.Notification, out var value, out var notification)) 186return $"{value}{CodeStyleHelpers.GetEditorConfigStringNotificationPart(option, defaultValue)}"; 204if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification(str, defaultValue.Notification, out var value, out var notificationOpt)) 215return $"{s_accessibilityModifiersRequiredMap.GetKeyOrDefault(option.Value)}{CodeStyleHelpers.GetEditorConfigStringNotificationPart(option, defaultValue)}"; 250if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification(str, defaultValue.Notification, out var value, out var notification)) 262return $"{value}{CodeStyleHelpers.GetEditorConfigStringNotificationPart(option, defaultValue)}"; 299if (CodeStyleHelpers.TryGetCodeStyleValueAndOptionalNotification(str, defaultValue.Notification, out var value, out var notification)) 313return $"{value}{CodeStyleHelpers.GetEditorConfigStringNotificationPart(option, defaultValue)}";
EditorConfigValueSerializer.cs (4)
89=> new(parseValue: str => CodeStyleHelpers.TryParseBoolEditorConfigCodeStyleOption(str, defaultValue, out var result) ? result : new Optional<CodeStyleOption2<bool>>(), 90serializeValue: value => (value.Value ? "true" : "false") + CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue)); 93=> new(parseValue: str => CodeStyleHelpers.TryParseStringEditorConfigCodeStyleOption(str, defaultValue, out var result) ? result : new Optional<CodeStyleOption2<string>>(), 94serializeValue: value => value.Value.ToLowerInvariant() + CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue));
OperatorPlacementWhenWrappingPreference.cs (1)
24if (CodeStyleHelpers.TryGetCodeStyleValue(optionString, out var value))
VisualBasicCodeStyleOptions.cs (2)
46CodeStyleHelpers.GetUnusedValuePreferenceSerializer); 52CodeStyleHelpers.GetUnusedValuePreferenceSerializer);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeStyle\EditorConfigCodeStyleParserTests.cs (1)
47CodeStyleHelpers.TryParseBoolEditorConfigCodeStyleOption(args, defaultValue: CodeStyleOption2<bool>.Default, out var result);