type TokenFactory … type CommonTokenFactory … func NewCommonTokenFactory(copyText bool) *CommonTokenFactory { … } var CommonTokenFactoryDEFAULT … func (c *CommonTokenFactory) Create(source *TokenSourceCharStreamPair, ttype int, text string, channel, start, stop, line, column int) Token { … } func (c *CommonTokenFactory) createThin(ttype int, text string) Token { … }