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

Method newTokenFromPreviousChar

output/java8/1.4.12/STLexer.java:646–651  ·  view source on GitHub ↗
(int ttype)

Source from the content-addressed store, hash-verified

644 }
645
646 public Token newTokenFromPreviousChar(int ttype) {
647 STToken t = new STToken(input, ttype, input.index() -1, input.index() -1);
648 t.setLine(input.getLine());
649 t.setCharPositionInLine(input.getCharPositionInLine() -1);
650 return t;
651 }
652
653 public Token newToken(int ttype, String text, int pos) {
654 STToken t = new STToken(ttype, text);

Callers 2

outsideMethod · 0.95
subTemplateMethod · 0.95

Calls 3

getCharPositionInLineMethod · 0.80
indexMethod · 0.65
getLineMethod · 0.45

Tested by

no test coverage detected