1 instantiation of EnumField
Microsoft.CodeAnalysis (1)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
324var enumField = new EnumField(field.Name, underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue), field);
22 references to EnumField
Microsoft.CodeAnalysis (22)
InternalUtilities\EnumField.cs (8)
15public static readonly IComparer<EnumField> Comparer = new EnumFieldComparer(); 39internal static EnumField FindValue(ArrayBuilder<EnumField> sortedFields, ulong value) 68return default(EnumField); 71private class EnumFieldComparer : IComparer<EnumField> 73int IComparer<EnumField>.Compare(EnumField field1, EnumField field2)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (14)
215var allFieldsAndValues = ArrayBuilder<EnumField>.GetInstance(); 218var usedFieldsAndValues = ArrayBuilder<EnumField>.GetInstance(); 232ArrayBuilder<EnumField> allFieldsAndValues, 233ArrayBuilder<EnumField> usedFieldsAndValues, 248foreach (EnumField fieldAndValue in allFieldsAndValues) 295var zeroField = constantValueULong == 0 296? EnumField.FindValue(allFieldsAndValues, 0) 297: default(EnumField); 313ArrayBuilder<EnumField> enumFields) 324var enumField = new EnumField(field.Name, underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue), field); 330enumFields.Sort(EnumField.Comparer); 339var enumFields = ArrayBuilder<EnumField>.GetInstance(); 343var match = EnumField.FindValue(enumFields, constantValueULong);