1 write to ClassModifier
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
19
ClassModifier
= IsLangVersion11AndAbove ? "file" : "internal";
6 references to ClassModifier
Microsoft.Extensions.Options.SourceGeneration (6)
Emitter.cs (6)
154
OutLn($"{_optionsSourceGenContext.
ClassModifier
} static class {className}");
630
EmitMaxLengthAttribute(_optionsSourceGenContext.
ClassModifier
, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert, _optionsSourceGenContext.Suffix);
635
EmitMinLengthAttribute(_optionsSourceGenContext.
ClassModifier
, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert, _optionsSourceGenContext.Suffix);
640
EmitLengthAttribute(_optionsSourceGenContext.
ClassModifier
, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert, _optionsSourceGenContext.Suffix);
645
EmitCompareAttribute(_optionsSourceGenContext.
ClassModifier
, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, linesToInsert: linesToInsert, _optionsSourceGenContext.Suffix);
649
EmitRangeAttribute(_optionsSourceGenContext.
ClassModifier
, Emitter.StaticAttributeClassNamePrefix, attributeData.Key, _optionsSourceGenContext.Suffix, attributeData.Value is not null);