Libraryless. Click here for Pure Java version (2664L/17K).
1 | sclass TokenRangeInterpretations<A> { |
2 | new DoubleKeyedMap<Int, Int, A> interpretations; |
3 | |
4 | A getInterpretation(IntRange tokenRange) { |
5 | ret tokenRange == null ? null : interpretations.get(tokenRange.start, tokenRange.end); |
6 | } |
7 | |
8 | void setInterpretation(IntRange tokenRange, A a) { |
9 | interpretations.put(tokenRange.start, tokenRange.end, a); |
10 | } |
11 | } |
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: | 188 / 299 |
Version history: | 3 change(s) |
Referenced in: | [show references] |