Fixed incorrect token count
This commit is contained in:
parent
8862dec3e4
commit
3c70529015
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue