Instead of this, pass through the text of the token as an arg here, and use this.function(name, children)