1 | // returns null if no comment |
2 | static S getJavaLineComment(S s) {
|
3 | L<S> tok = javaTok(s); |
4 | S x = last(tok); |
5 | int i = x.indexOf("//");
|
6 | ret i < 0 ? null : x.substring(i+2).trim(); |
7 | } |
Began life as a copy of #1003337
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003572 |
| Snippet name: | getJavaLineComment - only at end of input |
| Eternal ID of this version: | #1003572/2 |
| Text MD5: | 0bf3dfde0652ac318e1c4a862018c041 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-04-14 17:26:17 |
| Source code size: | 189 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 869 / 850 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |