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

8
LINES

< > BotCompany Repo | #1026106 // tok_returnSelf - "returnSelf" method return type

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

Libraryless. Click here for Pure Java version (2785L/18K).

svoid tok_returnSelf(LS tok) {
  int i;
  mainLoop: while ((i = jfind(tok, "returnSelf <id>")) >= 0) {
    IntRange block = tok_findFirstBlock(tok, i);
    tok.set(i, "selfType");
    tokPrepend(tok, block.end-1, " ret this; ");
  }
}

Author comment

Began life as a copy of #1025303

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026106
Snippet name: tok_returnSelf - "returnSelf" method return type
Eternal ID of this version: #1026106/1
Text MD5: acf3db5be809e4d4a2ce154c20d7c3f2
Transpilation MD5: 1ee66f553afd39b1374ee7d3cbc00cfd
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-23 23:55:30
Source code size: 241 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 218
Referenced in: [show references]