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