Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1025813 // javaParser_makeAllPublic_keepComments [new JavaParser]

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (13263L) is out of date.

!include once #1025810 // JavaParser
!include once #1025812 // javaParseCompilationUnit
!include once #1025811 // javaParser_makeAllPublic

static S javaParser_makeAllPublic_keepComments(S src) {
  CompilationUnit cu = javaParseCompilationUnit(src, true);
  new PrettyPrinterConfiguration ppconf;
  ppconf.setPrintComments(true);
  ppconf.setIndentSize(2);
  ppconf.setIndentType(PrettyPrinterConfiguration.IndentType.SPACES);
  new javaParser_makeAllPublic_Visitor().visit(cu, null);
  ret cu.toString(ppconf);
}

Author comment

Began life as a copy of #1011643

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj

No comments. add comment

Snippet ID: #1025813
Snippet name: javaParser_makeAllPublic_keepComments [new JavaParser]
Eternal ID of this version: #1025813/5
Text MD5: b5c877863e34a1aad638ccf59764f72c
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:53:39
Source code size: 525 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 219 / 2496
Version history: 4 change(s)
Referenced in: #759 - "Leading Edge" JavaX Translator (Extension of #7)
#1026023 - #759 backup with reTok_multi in tok_conditionals (seems slower?)
#1032956 - JavaX Translator backup
#1032968 - JavaX Translator backup
#1032978 - JavaX Translator backup
#1033035 - JavaX Translator backup
#1033089 - Transpiler dev.
#1033090 - Transpiler reverting
#1034497 - Experimental JavaX Transpiler [see #759]