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

9
LINES

< > BotCompany Repo | #1019708 // sf_dropArguments - removes all arguments from a standard function (why?)

JavaX fragment (include)

sS sf_dropArguments(S name) {
  S snippetID = standardFunctionMap().get(name);
  if (snippetID == null) ret "Function not found: " + name;
  S src = loadSnippet(snippetID);
  LS tok = javaTok(src);
  tok_dropFunctionArguments(tok);
  if (eq(join(tok), src)) ret "No change";
  ret editSnippet(snippetID, join(tok));
}

Author comment

Began life as a copy of #1019163

download  show line numbers  debug dex  old transpilations   

Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019708
Snippet name: sf_dropArguments - removes all arguments from a standard function (why?)
Eternal ID of this version: #1019708/2
Text MD5: 7f54d9a04eb040180a37b4d700b819a3
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-09 20:39:11
Source code size: 325 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 265 / 297
Version history: 1 change(s)
Referenced in: [show references]