1 instantiation of EnumValidationInfo
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationInfo.cs (1)
13
return new
EnumValidationInfo
(EnumTypeInfo.FromEnumType(enumType), new EquatableArray<int>(values), isFlags);
11 references to EnumValidationInfo
System.Windows.Forms.PrivateSourceGenerators (11)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (9)
74
IncrementalValuesProvider<
EnumValidationInfo
> enumsToValidate = context.CompilationProvider.Combine(argumentsToValidate.Collect()).SelectMany(
96
private static void GenerateValidator(SourceProductionContext context, StringBuilder sb, IEnumerable<
EnumValidationInfo
> infos)
107
foreach (
EnumValidationInfo
info in infos)
126
private static void GenerateValidateMethodBody(SourceProductionContext context, StringBuilder sb,
EnumValidationInfo
info, string indent)
141
private static void GenerateFlagsValidationMethodBody(StringBuilder sb,
EnumValidationInfo
info, string indent)
152
private static void GenerateSequenceValidationMethodBody(SourceProductionContext context, StringBuilder sb,
EnumValidationInfo
info, string indent)
198
private static IEnumerable<
EnumValidationInfo
> GetEnumValidationInfo(Compilation compilation, ImmutableArray<SyntaxNode> argumentsToValidate, CancellationToken cancellationToken)
228
var
info =
EnumValidationInfo
.FromEnumType(enumType, isFlags);
System\Windows\Forms\SourceGenerators\EnumValidationInfo.cs (2)
8
internal sealed record EnumValidationInfo(
EnumValidationInfo
.EnumTypeInfo EnumType, EquatableArray<int> Values, bool IsFlags)
10
public static
EnumValidationInfo
FromEnumType(ITypeSymbol enumType, bool isFlags)