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

Method newToken

output/java8/1.4.13/STLexer.java:639–644  ·  view source on GitHub ↗
(int ttype)

Source from the content-addressed store, hash-verified

637 }
638
639 public Token newToken(int ttype) {
640 STToken t = new STToken(input, ttype, startCharIndex, input.index() -1);
641 t.setLine(startLine);
642 t.setCharPositionInLine(startCharPositionInLine);
643 return t;
644 }
645
646 public Token newTokenFromPreviousChar(int ttype) {
647 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