Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1031711 // tok_processDontImports

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3679L/22K).

1  
// TODO: optimize
2  
// also doesn't seem to work yet
3  
static LS tok_processDontImports(LS tok, NavigableSet<S> defs) {
4  
  print("tok_processDontImports");
5  
  S prefix = "dontImport_";
6  
  new LS names;
7  
  for (S def : startingWithIC_navigableSubSet(prefix, defs)) {
8  
    def = dropPrefixIC(prefix, def);
9  
    S cl = replace(def, "$$", ".");
10  
    names.add(cl);
11  
    bool change = jreplace(tok, "import " + cl + ";", "")
12  
      | jreplace(tok, "import static " + cl + ";", "");
13  
    printVars tok_processDontImports(+def, +cl, +change);
14  
  }
15  
  ret names;
16  
}

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: 111 / 208
Version history: 9 change(s)
Referenced in: [show references]