in src/CodeGenerators/SettingsGen/Parser/SettingsFromAttributeParser.cs [56:78]
public void OnVisitSyntaxNode(GeneratorSyntaxContext context)
{
(IList<IAttributeWrapper> attributes, INamedTypeSymbol? classSymbol) = m_contextWrapper.GetAttributes(context);
if (attributes.Count > 0 && classSymbol != null)
{
foreach (IAttributeWrapper attribute in attributes)
{
if (ClassAttributes.Contains(attribute.Name))
{
// Get the name value of the class
string name = classSymbol.Name;
if (attribute.Arguments.TryGetValue(nameof(ParameterModel.Name), out string value))
{
name = value;
}
Classes.Add((name, classSymbol));
}
}
}
}