1 | static SS functionsToComments() {
|
2 | new TreeMap<S> map; |
3 | S src = myJavaSource(); |
4 | for (L<S> tok : tok_findMainFunctions(src)) {
|
5 | S name = tok_functionName(tok); |
6 | S comments = trim(get(tok, 0)); |
7 | map.put(name, comments); |
8 | } |
9 | ret map; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012939 |
| Snippet name: | functionsToComments - get comments directly before function declaration from Java source |
| Eternal ID of this version: | #1012939/3 |
| Text MD5: | 79ea50d3affa7d6e586557d698dbe58d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-18 16:53:37 |
| Source code size: | 256 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 737 / 716 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |