public AttributeArgumentDefinition CreateAttributeParameterFromSyntax(AttributeArgumentSyntax attributeArgumentSyntax) { if (attributeArgumentSyntax.Expression is LiteralExpressionSyntax literalExpression) { return(new AttributeArgumentDefinition(literalExpression.Token.ValueText)); } throw new NotImplementedException( attributeArgumentSyntax.GetType() + " is not yet implemented"); }