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).

// returns number of calls removed
static int dropFunctionCalls_reTok(LS tok, S functionName) {
  int removed = 0;
  while true {
    var r = tok_findFunctionCall(tok, functionName);
    if (r != null) {
      clearTokens_reTok(tok, r);
      ++removed;
    } else
      break;
  }
  ret removed;
}

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: 83 / 114
Version history: 2 change(s)
Referenced in: [show references]