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

9
LINES

< > BotCompany Repo | #1031732 // tok_pcallPrefix

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

Transpiled version (3488L) is out of date.

// e.g. pcall myFunc(...)
svoid tok_pcallPrefix(LS tok) {
  jreplace_dyn(tok, "pcall <id>(", (_tok, i) -> {
    S fname = tok.get(i+2);
    int iClosing = tok_findEndOfBracketPart(tok, i+4)-1;
    tokAppend_reTok(tok, iClosing, ")");
    ret "pcallF(() -> " + fname + "(";
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031732
Snippet name: tok_pcallPrefix
Eternal ID of this version: #1031732/5
Text MD5: 0e7912a2c1fe89eacdebc69af3653f9c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 01:20:49
Source code size: 288 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 255
Version history: 4 change(s)
Referenced in: [show references]