From 3c70529015ab3550ae4a8bd3f797aee1645d0ea7 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 1 Aug 2024 14:40:47 +0200 Subject: [PATCH] Fixed incorrect token count --- src/build/ast/Count.go | 1 + 1 file changed, 1 insertion(+) 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)