1 | static IntRange tokenToCharRange(L<S> tok, int tokenIndex) { |
2 | S t = get(tok, tokenIndex); |
3 | if (t == null) null; |
4 | int i = tokenToCharIndex(tok, tokenIndex); |
5 | ret intRange(i, i+l(t)); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015606 |
Snippet name: | tokenToCharRange |
Eternal ID of this version: | #1015606/1 |
Text MD5: | ba13c590f2dabacaabe44f9f4a41a1b9 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-19 19:33:49 |
Source code size: | 192 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 306 / 348 |
Referenced in: | [show references] |