1 instantiation of EnumField
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
313
fields.Add(new
EnumField
(info.Name, ConvertEnumUnderlyingTypeToUInt64(info.GetRawConstantValue(), enumTypeCode)));
16 references to EnumField
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (16)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (8)
15
public static readonly IComparer<
EnumField
> Comparer = new EnumFieldComparer();
39
internal static
EnumField
FindValue(ArrayBuilder<
EnumField
> sortedFields, ulong value)
68
return default(
EnumField
);
71
private class EnumFieldComparer : IComparer<
EnumField
>
73
int IComparer<
EnumField
>.Compare(
EnumField
field1,
EnumField
field2)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (8)
286
var fields = ArrayBuilder<
EnumField
>.GetInstance();
304
private static void FillEnumFields(ArrayBuilder<
EnumField
> fields, Type lmrType)
317
fields.Sort(
EnumField
.Comparer);
320
protected static void FillUsedEnumFields(ArrayBuilder<
EnumField
> usedFields, ArrayBuilder<
EnumField
> fields, ulong underlyingValue)
323
foreach (
var
field in fields)
485
internal abstract string GetNamesForFlagsEnumValue(ArrayBuilder<
EnumField
> fields, object value, ulong underlyingValue, ObjectDisplayOptions options, Type typeToDisplayOpt);
487
internal abstract string GetNameForEnumValue(ArrayBuilder<
EnumField
> fields, object value, ulong underlyingValue, ObjectDisplayOptions options, Type typeToDisplayOpt);