Add walker cases for token nodes

This commit is contained in:
joeduffy 2017-01-21 14:39:05 -08:00
parent bd231ff624
commit 9fe2f28e7b

View file

@ -32,7 +32,7 @@ func Walk(v Visitor, node Node) {
// order of them during runtime/interpretation.
switch n := node.(type) {
// Nodes
case *Identifier:
case *Identifier, *Token, *ModuleToken, *TypeToken:
// No children, nothing to do.
// Definitions