1 write to _optionsSourceGenContext
Microsoft.Extensions.Options.SourceGeneration (1)
16 references to _optionsSourceGenContext
Microsoft.Extensions.Options.SourceGeneration (16)
Emitter.cs (16)
44if (!_optionsSourceGenContext.IsLangVersion11AndAbove)
46_staticValidationAttributeHolderClassName += _optionsSourceGenContext.Suffix;
47_staticValidatorHolderClassName += _optionsSourceGenContext.Suffix;
154OutLn($"{_optionsSourceGenContext.ClassModifier} static class {className}");
615if (_optionsSourceGenContext.AttributesToGenerate.Count == 0)
620var attributesData = _optionsSourceGenContext.AttributesToGenerate.OrderBy(static kvp => kvp.Key, StringComparer.Ordinal).ToArray();
630EmitMaxLengthAttribute(_optionsSourceGenContext.ClassModifier, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert, _optionsSourceGenContext.Suffix);
635EmitMinLengthAttribute(_optionsSourceGenContext.ClassModifier, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert, _optionsSourceGenContext.Suffix);
640EmitLengthAttribute(_optionsSourceGenContext.ClassModifier, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert, _optionsSourceGenContext.Suffix);
645EmitCompareAttribute(_optionsSourceGenContext.ClassModifier, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert: linesToInsert, _optionsSourceGenContext.Suffix);
649EmitRangeAttribute(_optionsSourceGenContext.ClassModifier, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, _optionsSourceGenContext.Suffix, attributeData.Value is not null);