From 34d865986ac62fccbe0168a903c8af066d741fdb Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 2 Aug 2024 12:16:35 +0200 Subject: [PATCH] Added missing node --- src/build/ast/Count.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/build/ast/Count.go b/src/build/ast/Count.go index 4c5e40e..7ef7b18 100644 --- a/src/build/ast/Count.go +++ b/src/build/ast/Count.go @@ -8,6 +8,9 @@ func Count(body AST, buffer []byte, kind token.Kind, name string) uint8 { for _, node := range body { switch node := node.(type) { + case *Assert: + count += node.Condition.Count(buffer, kind, name) + case *Assign: count += node.Expression.Count(buffer, kind, name)