Add walker cases for token nodes
This commit is contained in:
parent
bd231ff624
commit
9fe2f28e7b
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func Walk(v Visitor, node Node) {
|
||||||
// order of them during runtime/interpretation.
|
// order of them during runtime/interpretation.
|
||||||
switch n := node.(type) {
|
switch n := node.(type) {
|
||||||
// Nodes
|
// Nodes
|
||||||
case *Identifier:
|
case *Identifier, *Token, *ModuleToken, *TypeToken:
|
||||||
// No children, nothing to do.
|
// No children, nothing to do.
|
||||||
|
|
||||||
// Definitions
|
// Definitions
|
||||||
|
|
Loading…
Reference in a new issue