Libraryless. Click here for Pure Java version (784L/6K/20K).
1 | !1006722 |
2 | |
3 | p { |
4 | S s = [[import bla; class bla { import blubb; }]]; |
5 | L<S> tok = javaTok(s); |
6 | tok_moveImportsUp(tok); |
7 | print(s = join(tok)); |
8 | tok_moveImportsUp(tok); |
9 | assertEquals(s, join(tok)); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009580 |
Snippet name: | Test tok_moveImportsUp [OK] |
Eternal ID of this version: | #1009580/4 |
Text MD5: | baf69931acbcd6b82733b88ffa2cdeec |
Transpilation MD5: | 6733f1743dd227b6fe9ca2b0e372f3fc |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-08 20:58:52 |
Source code size: | 208 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 352 / 460 |
Version history: | 3 change(s) |
Referenced in: | [show references] |