2 instantiations of ValidatorType
Microsoft.Extensions.Options.SourceGeneration (2)
Parser.cs (2)
136
results.Add(new
ValidatorType
(
715
var result = new
ValidatorType
(
9 references to ValidatorType
Microsoft.Extensions.Options.SourceGeneration (9)
Emitter.cs (3)
58
IEnumerable<
ValidatorType
> validatorTypes,
64
foreach (
var
vt in validatorTypes.OrderBy(static lt => lt.Namespace + "." + lt.Name))
102
private void GenValidatorType(
ValidatorType
vt, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
Parser.cs (6)
29
private readonly Dictionary<ITypeSymbol,
ValidatorType
> _synthesizedValidators = new(SymbolEqualityComparer.Default);
46
public IReadOnlyList<
ValidatorType
> GetValidatorTypes(IEnumerable<(TypeDeclarationSyntax TypeSyntax, SemanticModel SemanticModel)> classes)
48
var results = new List<
ValidatorType
>();
155
return new List<
ValidatorType
>();
693
if (_synthesizedValidators.TryGetValue(mt, out
var
validator))
715
var
result = new ValidatorType(