diff --git a/src/build/ast/Count.go b/src/build/ast/Count.go index 031a5fc..4c5e40e 100644 --- a/src/build/ast/Count.go +++ b/src/build/ast/Count.go @@ -25,6 +25,7 @@ func Count(body AST, buffer []byte, kind token.Kind, name string) uint8 { case *If: count += node.Condition.Count(buffer, kind, name) count += Count(node.Body, buffer, kind, name) + count += Count(node.Else, buffer, kind, name) case *Loop: count += Count(node.Body, buffer, kind, name)