Transpiled version (2155L) is out of date.
1 | !include once #1025810 // JavaParser |
2 | |
3 | static CompilationUnit javaParseCompilationUnit(S java, bool withComments default false) { |
4 | new JavaParser p; |
5 | p.getParserConfiguration().setAttributeComments(withComments); |
6 | ParseResult<CompilationUnit> r = p.parse(java); |
7 | if (!r.isSuccessful()) |
8 | fail(str(r)); |
9 | ret r.getResult().get(); |
10 | } |
Began life as a copy of #1011226
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: | #1025812 |
Snippet name: | javaParseCompilationUnit [new JavaParser version] |
Eternal ID of this version: | #1025812/6 |
Text MD5: | d568d8ea97ad4d53105a3969a57e8fd3 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-12 18:53:43 |
Source code size: | 344 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 259 / 1613 |
Version history: | 5 change(s) |
Referenced in: | [show references] |