Added missing node
This commit is contained in:
parent
270e7e27a0
commit
c9850cf678
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue