Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1008637 // tokenRangeToCharRange

JavaX fragment (include)

static IntRange tokenRangeToCharRange(L<S> tok, IntRange r) {
  ret r == null ? null : new IntRange(
    tokenToCharIndex(tok, r.start), tokenToCharIndex(tok, r.end));
}

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: #1008637
Snippet name: tokenRangeToCharRange
Eternal ID of this version: #1008637/3
Text MD5: 641197c34b01684dee6e818615541a82
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-26 16:37:06
Source code size: 172 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 389 / 438
Version history: 2 change(s)
Referenced in: [show references]