1 instantiation of EnumField
Microsoft.CodeAnalysis (1)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
324
var enumField = new
EnumField
(field.Name, underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue), field);
22 references to EnumField
Microsoft.CodeAnalysis (22)
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)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (14)
215
var allFieldsAndValues = ArrayBuilder<
EnumField
>.GetInstance();
218
var usedFieldsAndValues = ArrayBuilder<
EnumField
>.GetInstance();
232
ArrayBuilder<
EnumField
> allFieldsAndValues,
233
ArrayBuilder<
EnumField
> usedFieldsAndValues,
248
foreach (
EnumField
fieldAndValue in allFieldsAndValues)
295
var
zeroField = constantValueULong == 0
296
?
EnumField
.FindValue(allFieldsAndValues, 0)
297
: default(
EnumField
);
313
ArrayBuilder<
EnumField
> enumFields)
324
var
enumField = new EnumField(field.Name, underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue), field);
330
enumFields.Sort(
EnumField
.Comparer);
339
var enumFields = ArrayBuilder<
EnumField
>.GetInstance();
343
var
match =
EnumField
.FindValue(enumFields, constantValueULong);