addToken

Adds a token to this capture's children.

This method is used internally by PatternElements when they successfully match a token. The Token is wrapped in an internal TokenNode before being added.

Return

this capture instance for chaining

Parameters

token

The Token to add