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

9
LINES

< > BotCompany Repo | #1020765 // includeInMainLoaded_beginning - now reToks

JavaX fragment (include)

svoid includeInMainLoaded_beginning(L<S> tok, S text) {
  L<S> main = findMainClass(tok);
  if (main == null) {
    print(join(tok));
    fail("no main class");
  }
  int i = main.indexOf("{");
  tokAppend_reTok(tok, i, "\n" + text + "\n");
}

Author comment

Began life as a copy of #1002769

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020765
Snippet name: includeInMainLoaded_beginning - now reToks
Eternal ID of this version: #1020765/1
Text MD5: 73b78a90000c25389a6d04d7d587219b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-01 22:44:27
Source code size: 250 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 238 / 270
Referenced in: [show references]