Added missing node

This commit is contained in:
Eduard Urbach 2024-08-02 12:16:35 +02:00
parent b0c568e616
commit 34d865986a
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -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)