Libraryless. Click here for Pure Java version (2869L/18K).
1 | static Set<S> ai_mostLikelyVariables(S s) { |
2 | Set<S> set = asSet(javaTok_cached(s)); |
3 | if (contains(set, "X")) ret intersectSetWithItems(set, "X", "Y", "Z"); |
4 | if (any isDollarVar(set)) ret filterSet isDollarVar(set); |
5 | if (contains(set, "*")) ret litset("*"); |
6 | null; |
7 | } |
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: | #1028847 |
Snippet name: | ai_mostLikelyVariables |
Eternal ID of this version: | #1028847/2 |
Text MD5: | ef135d0738e4b91bec9f2bfd74b78617 |
Transpilation MD5: | 0ad88bfb02475aa53624d0041b1e3347 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-09 17:49:18 |
Source code size: | 276 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 227 / 306 |
Version history: | 1 change(s) |
Referenced in: | [show references] |