2 instantiations of StaticFieldInfo
Microsoft.Extensions.Options.SourceGeneration (2)
20 references to StaticFieldInfo
Microsoft.Extensions.Options.SourceGeneration (20)
Emitter.cs (20)
61var staticValidationAttributesDict = new Dictionary<string, StaticFieldInfo>();
62var staticValidatorsDict = new Dictionary<string, StaticFieldInfo>();
102private void GenValidatorType(ValidatorType vt, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
148private void GenStaticClassWithStaticReadonlyFields(IEnumerable<StaticFieldInfo> staticFields, string classNamespace, string className)
163var attributeInstance = staticValidationAttributes[i];
670ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict,
671ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
730private void GenMemberValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, bool cleanListsBeforeUse)
743var staticValidationAttributeInstance = GetOrAddStaticValidationAttribute(ref staticValidationAttributesDict, attr);
753private StaticFieldInfo GetOrAddStaticValidationAttribute(ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ValidationAttributeInfo attr)
798if (!staticValidationAttributesDict.TryGetValue(instantiationStatement, out var staticValidationAttributeInstance))
813private void GenTransitiveValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
822var staticValidatorInstance = GetOrAddStaticValidator(ref staticValidatorsDict, vm.TransValidatorType!);
844private void GenEnumerationValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
855var staticValidatorInstance = GetOrAddStaticValidator(ref staticValidatorsDict, vm.EnumerationValidatorType!);
901private StaticFieldInfo GetOrAddStaticValidator(ref Dictionary<string, StaticFieldInfo> staticValidatorsDict, string validatorTypeFQN)
904if (!staticValidatorsDict.TryGetValue(validatorTypeFQN, out var staticValidatorInstance))