32 references to Value
Metrics.Legacy (32)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\AddImport\AddImportPlacementOptions.cs (1)
28
public bool PlaceImportsInsideNamespaces => UsingDirectivePlacement.
Value
== AddImportPlacement.InsideNamespace;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (3)
185
Debug.Assert(s_unusedExpressionAssignmentPreferenceMap.ContainsValue(option.
Value
));
186
var value = s_unusedExpressionAssignmentPreferenceMap.GetKeyOrDefault(option.
Value
) ?? s_unusedExpressionAssignmentPreferenceMap.GetKeyOrDefault(defaultValue.
Value
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (10)
93
object? ICodeStyleOption2.Value => this.
Value
;
95
ICodeStyleOption2 ICodeStyleOption2.WithNotification(NotificationOption2 notification) => new CodeStyleOption2<T>(
Value
, notification);
102
if (boolValue == (bool)(object)
Value
!)
110
return EqualityComparer<T>.Default.Equals(value,
Value
) ? this : new CodeStyleOption2<T>(value, Notification);
113
private int EnumValueAsInt32 => (int)(object)
Value
!;
126
return
Value
!;
130
return
Value
!;
240
&& EqualityComparer<T>.Default.Equals(
Value
, other.
Value
)
249
=> unchecked((Notification.GetHashCode() * (int)0xA5555529) + EqualityComparer<T>.Default.GetHashCode(
Value
!));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (10)
193
Debug.Assert(s_unusedParametersPreferenceMap.ContainsValue(option.
Value
));
194
var value = s_unusedParametersPreferenceMap.GetKeyOrDefault(option.
Value
) ?? s_unusedParametersPreferenceMap.GetKeyOrDefault(defaultValue.
Value
);
223
Debug.Assert(s_accessibilityModifiersRequiredMap.ContainsValue(option.
Value
));
224
return $"{s_accessibilityModifiersRequiredMap.GetKeyOrDefault(option.
Value
)}{CodeStyleHelpers.GetEditorConfigStringNotificationPart(option, defaultValue)}";
269
Debug.Assert(s_parenthesesPreferenceMap.ContainsValue(option.
Value
));
270
var value = s_parenthesesPreferenceMap.GetKeyOrDefault(option.
Value
) ?? s_parenthesesPreferenceMap.GetKeyOrDefault(ParenthesesPreference.AlwaysForClarity);
322
Debug.Assert(s_forEachExplicitCastInSourcePreferencePreferenceMap.ContainsValue(option.
Value
));
323
var value = s_forEachExplicitCastInSourcePreferencePreferenceMap.GetKeyOrDefault(option.
Value
) ??
324
s_forEachExplicitCastInSourcePreferencePreferenceMap.GetKeyOrDefault(defaultValue.
Value
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CollectionExpressionPreference.cs (1)
27
var prefix = value.
Value
switch
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (1)
18
=> TryGetEditorConfigOption<CodeStyleOption2<T>>(analyzerConfigOptions, option, out var style) ? style!.
Value
: defaultValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
95
serializeValue: value => (value.
Value
? "true" : "false") + CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue));
99
serializeValue: value => value.
Value
.ToLowerInvariant() + CodeStyleHelpers.GetEditorConfigStringNotificationPart(value, defaultValue));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (4)
41
=> GetOptionValue(options, option, option.DefaultValue.
Value
);
44
=> options.TryGetOption<CodeStyleOption2<T>>(new OptionKey2(option), out var style) ? style!.
Value
: defaultValue;
47
=> GetOptionValue(options, option, language, option.DefaultValue.
Value
);
50
=> options.TryGetOption<CodeStyleOption2<T>>(new OptionKey2(option, language), out var style) ? style!.
Value
: defaultValue;