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

Method newToken

output/java/1.4.13/STLexer.java:655–660  ·  view source on GitHub ↗
(int ttype)

Source from the content-addressed store, hash-verified

653 }
654
655 public Token newToken(int ttype) {
656 STToken t = new STToken(input, ttype, startCharIndex, input.index() -1);
657 t.setLine(startLine);
658 t.setCharPositionInLine(startCharPositionInLine);
659 return t;
660 }
661
662 public Token newTokenFromPreviousChar(int ttype) {
663 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