please include function javaParser_makeAllPublic.
please include function javaParseCompilationUnit.
static S javaParser_makeAllPublic_keepComments(S src) {
//CompilationUnit cu = javaParseCompilationUnit(src);
CompilationUnit cu = JavaParser.parse(src);
new PrettyPrinterConfiguration ppconf;
ppconf.setPrintComments(true);
ppconf.setIndent(" ");
new javaParser_makeAllPublic_Visitor().visit(cu, null);
ret cu.toString(ppconf);
}Began life as a copy of #1011234
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1011643 |
| Snippet name: | javaParser_makeAllPublic_keepComments (old) |
| Eternal ID of this version: | #1011643/6 |
| Text MD5: | d75f9b3bc3134a7bd310739b87e6c3e4 |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-07-15 20:54:23 |
| Source code size: | 456 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 981 / 1201 |
| Version history: | 5 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014458 - javaParser_reparse_keepComments [OLD] #1025813 - javaParser_makeAllPublic_keepComments [new JavaParser] |