~emersion/gyosu

643a6702cdd63e6fb97bd03ec06456aedac5cd7e — Simon Ser 14 days ago 2001e59
Panic on unhandled DeclarationSpecifiers

Will allow us to notice when we see it in the wild, instead of
ignoring it.
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +1 -1
@@ 465,7 465,7 @@ func main() {
		if decl.InitDeclaratorList == nil {
			for declSpec := decl.DeclarationSpecifiers; declSpec != nil; declSpec = declSpec.DeclarationSpecifiers {
				if declSpec.Case != cc.DeclarationSpecifiersTypeSpec {
					continue // TODO
					panic(fmt.Sprintf("TODO: %v", declSpec.Case))
				}
				typeSpec := declSpec.TypeSpecifier