1 write to Suffix
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
20
Suffix
= IsLangVersion11AndAbove ? "" : $"_{GetNonRandomizedHashCode(compilation.SourceModule.Name):X8}";
10 references to Suffix
Microsoft.Extensions.Options.SourceGeneration (10)
Emitter.cs (7)
46
_staticValidationAttributeHolderClassName += _optionsSourceGenContext.
Suffix
;
47
_staticValidatorHolderClassName += _optionsSourceGenContext.
Suffix
;
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);
Parser.cs (3)
615
attributeFullQualifiedName = $"{Emitter.StaticGeneratedValidationAttributesClassesNamespace}.{Emitter.StaticAttributeClassNamePrefix}{_optionsSourceGenContext.
Suffix
}_{attributeType.Name}";
626
attributeFullQualifiedName = $"{Emitter.StaticGeneratedValidationAttributesClassesNamespace}.{Emitter.StaticAttributeClassNamePrefix}{_optionsSourceGenContext.
Suffix
}_{attribute.AttributeClass!.Name}";
680
attributeFullQualifiedName = $"{Emitter.StaticGeneratedValidationAttributesClassesNamespace}.{Emitter.StaticAttributeClassNamePrefix}{_optionsSourceGenContext.
Suffix
}_{attribute.AttributeClass!.Name}";