Skip to content

Commit

Permalink
fix: ivar output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Dec 11, 2023
1 parent cd0989f commit 625bf9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/objc/class.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func (c *Class) dump(verbose, addrs bool) string {
iVars = fmt.Sprintf("\n")
}
if len(c.Props) > 0 {
if len(c.Ivars) == 0 {
props += "\n"
}
for _, prop := range c.Props {
if verbose {
props += fmt.Sprintf("@property %s%s;\n", getPropertyAttributeTypes(prop.Attributes), prop.Name)
Expand Down

0 comments on commit 625bf9e

Please sign in to comment.