Skip to content

Commit e4f751a

Browse files
committed
process the ast.ArrayType node as is.
Signed-off-by: Vladislav Fursov <github@ghost.im>
1 parent b48a9fb commit e4f751a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

processor.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,8 @@ func (c *processor) processInner(expr ast.Expr) {
218218
c.write("*")
219219
c.processInner(x.X)
220220

221-
case *ast.CompositeLit:
222-
c.write(formatNode(x))
223-
224-
case *ast.TypeAssertExpr:
221+
case *ast.CompositeLit, *ast.TypeAssertExpr, *ast.ArrayType:
222+
// Process the node as is.
225223
c.write(formatNode(x))
226224

227225
default:

0 commit comments

Comments
 (0)