static IntRange tokenToCharRange(L tok, int tokenIndex) { S t = get(tok, tokenIndex); if (t == null) null; int i = tokenToCharIndex(tok, tokenIndex); ret intRange(i, i+l(t)); }