Libraryless. Click here for Pure Java version (2664L/17K).
sclass TokenRangeInterpretations<A> { new DoubleKeyedMap<Int, Int, A> interpretations; A getInterpretation(IntRange tokenRange) { ret tokenRange == null ? null : interpretations.get(tokenRange.start, tokenRange.end); } void setInterpretation(IntRange tokenRange, A a) { interpretations.put(tokenRange.start, tokenRange.end, a); } }
Began life as a copy of #1027942
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027943 |
Snippet name: | TokenRangeInterpretations |
Eternal ID of this version: | #1027943/4 |
Text MD5: | 602c6336f8fac9e95b74830e143d3114 |
Transpilation MD5: | 2431ab4afc39e10e7aefcbee775ae8de |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-20 00:41:51 |
Source code size: | 365 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 187 / 298 |
Version history: | 3 change(s) |
Referenced in: | -