1 | svoid includeInMainLoaded_beginning(L<S> tok, S text) { |
2 | L<S> main = findMainClass(tok); |
3 | if (main == null) { |
4 | print(join(tok)); |
5 | fail("no main class"); |
6 | } |
7 | int i = main.indexOf("{"); |
8 | tokAppend_reTok(tok, i, "\n" + text + "\n"); |
9 | } |
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: | 240 / 272 |
Referenced in: | [show references] |