p-x9 / AssociatedObject

🔗 Swift Macro for allowing variable declarations even in class extensions
MIT License
126 stars 3 forks source link

Fix Typo #19

Closed mlch911 closed 8 months ago

p-x9 commented 8 months ago

Thanks. @mlch911 I think I may need to modify the macro implementation as well to avoid generating unnecessary spaces.

I will take a look at it later.

p-x9 commented 8 months ago

@mlch911 Could you try changing the type to type.trimmed in the following two places? This is to remove the whitespace specified for trailingTrivia.

https://github.com/p-x9/AssociatedObject/blob/ac2684bf9e1d5438b8a72f45f03ed671b75176e0/Sources/AssociatedObjectPlugin/AssociatedObjectMacro.swift#L228-L230

https://github.com/p-x9/AssociatedObject/blob/ac2684bf9e1d5438b8a72f45f03ed671b75176e0/Sources/AssociatedObjectPlugin/AssociatedObjectMacro.swift#L286-L288

mlch911 commented 8 months ago

done

p-x9 commented 8 months ago

Thanks