1 instantiation of ValidatableType
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Parsers\ValidationsGenerator.TypesParser.cs (1)
133
validatableTypes.Add(new
ValidatableType
(
16 references to ValidatableType
Microsoft.Extensions.Validation.ValidationsGenerator (16)
Emitters\ValidationsGenerator.Emitter.cs (5)
18
internal static void Emit(SourceProductionContext context, (ImmutableArray<InterceptableLocation?> AddValidationLocations, ImmutableArray<
ValidatableType
> ValidatableTypes) emitInputs)
30
private static string Emit(ImmutableArray<InterceptableLocation> addValidationLocations, ImmutableArray<
ValidatableType
> validatableTypes) => $$"""
353
private static string EmitTypeChecks(ImmutableArray<
ValidatableType
> validatableTypes)
357
foreach (
var
validatableType in validatableTypes)
414
private static string FormatTypeDisplayNameInfo(
ValidatableType
validatableType)
Models\ValidatableTypeComparer.cs (4)
9
internal sealed class ValidatableTypeComparer : IEqualityComparer<
ValidatableType
?>
13
public bool Equals(
ValidatableType
? x,
ValidatableType
? y)
27
public int GetHashCode(
ValidatableType
? obj)
Parsers\ValidationsGenerator.AttributeParser.cs (2)
19
internal static ImmutableArray<
ValidatableType
> TransformValidatableTypeWithAttribute(GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)
21
var validatableTypes = new HashSet<
ValidatableType
>(ValidatableTypeComparer.Instance);
Parsers\ValidationsGenerator.EndpointsParser.cs (1)
28
internal static ImmutableArray<
ValidatableType
> TransformEndpoints(GeneratorSyntaxContext context, CancellationToken cancellationToken)
Parsers\ValidationsGenerator.TypesParser.cs (4)
17
internal static ImmutableArray<
ValidatableType
> ExtractValidatableTypes(IInvocationOperation operation)
38
var validatableTypes = new HashSet<
ValidatableType
>(ValidatableTypeComparer.Instance);
60
internal static bool TryExtractValidatableType(ITypeSymbol incomingTypeSymbol, WellKnownTypes wellKnownTypes, HashSet<
ValidatableType
> validatableTypes, List<ITypeSymbol> visitedTypes)
142
private static ImmutableArray<ValidatableProperty> ExtractValidatableMembers(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, HashSet<
ValidatableType
> validatableTypes, List<ITypeSymbol> visitedTypes)