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

Method newToken

output/java/1.4.19/STLexer.java:671–676  ·  view source on GitHub ↗
(int ttype)

Source from the content-addressed store, hash-verified

669 }
670
671 public Token newToken(int ttype) {
672 STToken t = new STToken(input, ttype, startCharIndex, input.index()-1);
673 t.setLine(startLine);
674 t.setCharPositionInLine(startCharPositionInLine);
675 return t;
676 }
677
678 public Token newTokenFromPreviousChar(int ttype) {
679 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