public static Location GetFirstArgumentLocation(this Microsoft.CodeAnalysis.AttributeData attributeData) { var attributeSyntax = (AttributeSyntax)attributeData.ApplicationSyntaxReference.GetSyntax(); return(attributeSyntax.ArgumentList.Arguments[0].GetLocation()); }