/// <summary> /// Add the attribute list to the <see cref="ConversionOperatorDeclarationSyntax"/>. /// </summary> /// <param name="member">The <see cref="ConversionOperatorDeclarationSyntax"/>.</param> /// <param name="attributeList">The <see cref="AttributeListSyntax"/>.</param> /// <returns>The <paramref name="member"/> with <paramref name="attributeList"/> added.</returns> public static ConversionOperatorDeclarationSyntax WithAttributeList(this ConversionOperatorDeclarationSyntax member, AttributeListSyntax attributeList) { if (member is null) { throw new System.ArgumentNullException(nameof(member)); } if (attributeList is null) { throw new System.ArgumentNullException(nameof(attributeList)); } return(member.WithAttributeLists(member.AttributeLists.Add(attributeList))); }