Libraryless. Click here for Pure Java version (2869L/18K).
static Set<S> ai_mostLikelyVariables(S s) { Set<S> set = asSet(javaTok_cached(s)); if (contains(set, "X")) ret intersectSetWithItems(set, "X", "Y", "Z"); if (any isDollarVar(set)) ret filterSet isDollarVar(set); if (contains(set, "*")) ret litset("*"); null; }
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: | 225 / 302 |
Version history: | 1 change(s) |
Referenced in: | [show references] |