Give prove, stepInto and columnItems a case per node kind, panicking on the rest

This commit is contained in:
2026-09-29 09:37:32 +02:00
committed by Lillem4n
parent d01c914e7f
commit 16e4f4ebbb
5 changed files with 14 additions and 9 deletions
+3
View File
@@ -138,6 +138,9 @@ func columnItems(n node) (items []*template, nullable bool) {
items = append(items, n)
case *nullItem:
nullable = true
case *tableColumn:
default:
panic(internalError("columnItems has no case for node %T", n))
}
}
collect(n)