Skip to content

Commit

Permalink
process the ast.ArrayType node as is.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Fursov <github@ghost.im>
  • Loading branch information
ghostiam committed Mar 19, 2024
1 parent b48a9fb commit e4f751a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,8 @@ func (c *processor) processInner(expr ast.Expr) {
c.write("*")
c.processInner(x.X)

case *ast.CompositeLit:
c.write(formatNode(x))

case *ast.TypeAssertExpr:
case *ast.CompositeLit, *ast.TypeAssertExpr, *ast.ArrayType:
// Process the node as is.
c.write(formatNode(x))

default:
Expand Down

0 comments on commit e4f751a

Please sign in to comment.