Lines Matching refs:newToken
293 pANTLR3_COMMON_TOKEN newToken; in createToken() local
295 newToken = adaptor->tokenFactory->newToken(adaptor->tokenFactory); in createToken()
297 if (newToken != NULL) in createToken()
299 newToken->textState = ANTLR3_TEXT_CHARP; in createToken()
300 newToken->tokText.chars = (pANTLR3_UCHAR)text; in createToken()
301 newToken->setType(newToken, tokenType); in createToken()
302 newToken->input = adaptor->tokenFactory->input; in createToken()
303 newToken->strFactory = adaptor->strFactory; in createToken()
305 return newToken; in createToken()
329 pANTLR3_COMMON_TOKEN newToken; in createTokenFromToken() local
331 newToken = adaptor->tokenFactory->newToken(adaptor->tokenFactory); in createTokenFromToken()
333 if (newToken != NULL) in createTokenFromToken()
340 newToken->toString = fromToken->toString; in createTokenFromToken()
344 newToken->textState = ANTLR3_TEXT_CHARP; in createTokenFromToken()
345 newToken->tokText.chars = fromToken->tokText.chars; in createTokenFromToken()
350 newToken->textState = ANTLR3_TEXT_STRING; in createTokenFromToken()
351 …newToken->tokText.text = adaptor->strFactory->newPtr(adaptor->strFactory, text->chars, text->l… in createTokenFromToken()
354 newToken->setLine (newToken, fromToken->getLine(fromToken)); in createTokenFromToken()
355 newToken->setTokenIndex (newToken, fromToken->getTokenIndex(fromToken)); in createTokenFromToken()
356 newToken->setCharPositionInLine (newToken, fromToken->getCharPositionInLine(fromToken)); in createTokenFromToken()
357 newToken->setChannel (newToken, fromToken->getChannel(fromToken)); in createTokenFromToken()
358 newToken->setType (newToken, fromToken->getType(fromToken)); in createTokenFromToken()
361 return newToken; in createTokenFromToken()