From 625bf9e9a2841515b43ff5d23e6d5ffefe8ac462 Mon Sep 17 00:00:00 2001 From: blacktop Date: Sun, 10 Dec 2023 21:47:18 -0700 Subject: [PATCH] fix: ivar output formatting --- types/objc/class.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/objc/class.go b/types/objc/class.go index 8fdd923..f52794e 100644 --- a/types/objc/class.go +++ b/types/objc/class.go @@ -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)