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