MCPcopy Index your code
hub / github.com/antlr/codebuff / newToken

Method newToken

output/java8/1.4.19/STLexer.java:663–668  ·  view source on GitHub ↗
(int ttype)

Source from the content-addressed store, hash-verified

661 }
662
663 public Token newToken(int ttype) {
664 STToken t = new STToken(input, ttype, startCharIndex, input.index() -1);
665 t.setLine(startLine);
666 t.setCharPositionInLine(startCharPositionInLine);
667 return t;
668 }
669
670 public Token newTokenFromPreviousChar(int ttype) {
671 STToken t = new STToken(input, ttype, input.index() -1, input.index() -1);

Callers 9

_nextTokenMethod · 0.95
outsideMethod · 0.95
insideMethod · 0.95
ESCAPEMethod · 0.95
UNICODEMethod · 0.95
mTEXTMethod · 0.95
mIDMethod · 0.95
mSTRINGMethod · 0.95
COMMENTMethod · 0.95

Calls 2

indexMethod · 0.65
getLineMethod · 0.45

Tested by

no test coverage detected