Skip to content

Commit

Permalink
fix: objc ivar WithAddrs formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Dec 21, 2023
1 parent 9d4af2d commit f78a6d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions types/objc/class.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ func (c *Class) dump(verbose, addrs bool) string {
}
for _, ivar := range c.Ivars {
if verbose {
fmt.Fprintf(w, " %s\n", ivar.Verbose())
} else if addrs {
fmt.Fprintf(w, " %s\n", ivar.WithAddrs())
if addrs {
fmt.Fprintf(w, " %s\n", ivar.WithAddrs())
} else {
fmt.Fprintf(w, " %s\n", ivar.Verbose())
}
} else {
fmt.Fprintf(w, " %s\n", &ivar)
}
Expand Down

0 comments on commit f78a6d9

Please sign in to comment.