1 | scope javaTokForJFind_cached. |
2 | |
3 | static Map<S, LS> #cache = synchronizedMRUCache(1000); |
4 | |
5 | static LS javaTokForJFind_cached(S s) {
|
6 | LS tok = cache.get(s); |
7 | if (tok == null) |
8 | cache.put(s, tok = jfind_preprocess(javaTok(s))); |
9 | ret tok; |
10 | } |
11 | |
12 | end scope |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1021948 |
| Snippet name: | javaTokForJFind_cached |
| Eternal ID of this version: | #1021948/2 |
| Text MD5: | 34be839c878871d8d864d6d02f677fac |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-04 00:54:44 |
| Source code size: | 259 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 495 / 532 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |