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

13
LINES

< > BotCompany Repo | #1037255 // dropFunctionCalls_reTok

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

Libraryless. Click here for Pure Java version (11545L/64K).

1  
// returns number of calls removed
2  
static int dropFunctionCalls_reTok(LS tok, S functionName) {
3  
  int removed = 0;
4  
  while true {
5  
    var r = tok_findFunctionCall(tok, functionName);
6  
    if (r != null) {
7  
      clearTokens_reTok(tok, r);
8  
      ++removed;
9  
    } else
10  
      break;
11  
  }
12  
  ret removed;
13  
}

Author comment

Began life as a copy of #1037253

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1037255
Snippet name: dropFunctionCalls_reTok
Eternal ID of this version: #1037255/3
Text MD5: f5ca2494082ff10e7fb82eff2a8271c9
Transpilation MD5: 1e9a3b5000b7b1e5efb28e7f428dafe7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-09-24 09:51:08
Source code size: 310 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 207
Version history: 2 change(s)
Referenced in: [show references]