Libraryless. Click here for Pure Java version (3679L/22K).
// TODO: optimize // also doesn't seem to work yet static LS tok_processDontImports(LS tok, NavigableSet<S> defs) { print("tok_processDontImports"); S prefix = "dontImport_"; new LS names; for (S def : startingWithIC_navigableSubSet(prefix, defs)) { def = dropPrefixIC(prefix, def); S cl = replace(def, "$$", "."); names.add(cl); bool change = jreplace(tok, "import " + cl + ";", "") | jreplace(tok, "import static " + cl + ";", ""); printVars tok_processDontImports(+def, +cl, +change); } ret names; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031711 |
Snippet name: | tok_processDontImports |
Eternal ID of this version: | #1031711/10 |
Text MD5: | d851118d127e270a61040468ad3854ff |
Transpilation MD5: | 3ece64a5de6a2b754dc8ee926de1ce3a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 19:00:06 |
Source code size: | 555 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 151 / 263 |
Version history: | 9 change(s) |
Referenced in: | [show references] |