Added missing node

This commit is contained in:
Eduard Urbach 2024-08-02 12:16:35 +02:00
parent 270e7e27a0
commit c9850cf678
Signed by: eduard
GPG key ID: 49226B848C78F6C8

View file

@ -8,6 +8,9 @@ func Count(body AST, buffer []byte, kind token.Kind, name string) uint8 {
for _, node := range body { for _, node := range body {
switch node := node.(type) { switch node := node.(type) {
case *Assert:
count += node.Condition.Count(buffer, kind, name)
case *Assign: case *Assign:
count += node.Expression.Count(buffer, kind, name) count += node.Expression.Count(buffer, kind, name)