MCPcopy Create free account
hub / github.com/antlr/codebuff / newToken

Method newToken

output/java/1.4.14/STLexer.java:665–670  ·  view source on GitHub ↗
(int ttype)

Source from the content-addressed store, hash-verified

663 }
664
665 public Token newToken(int ttype) {
666 STToken t = new STToken(input, ttype, startCharIndex, input.index()-1);
667 t.setLine(startLine);
668 t.setCharPositionInLine(startCharPositionInLine);
669 return t;
670 }
671
672 public Token newTokenFromPreviousChar(int ttype) {
673 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