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

10
LINES

< > BotCompany Repo | #1020089 // dm_moduleRequiringModuleMap_v1 - finds directly referenced modules (not through another function)

JavaX fragment (include)

1  
static MultiMap<S> dm_moduleRequiringModuleMap_v1() {
2  
  new MultiMap<S> mm;
3  
  for (S moduleID : dm_dynModulesOnServer_ids()) {
4  
    S src = dm_getSnippetText(moduleID);
5  
    for (S args : tok_allArgsInCallsToFunctions(javaTok(src), 'dm_requireModule, 'dm_makeModule, 'dm_makeOrShowModule))
6  
      if (isProperlyQuoted2(args))
7  
        mm.put(moduleID, beforeSlash_orAll(unquote(args)));
8  
  }
9  
  ret mm;
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020089
Snippet name: dm_moduleRequiringModuleMap_v1 - finds directly referenced modules (not through another function)
Eternal ID of this version: #1020089/5
Text MD5: 219dc552525516751412b843378e083a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-06 21:50:39
Source code size: 407 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 386
Version history: 4 change(s)
Referenced in: [show references]