1 | !include once #1017229 // Java Parser |
2 | |
3 | static <A extends com.github.javaparser.ast.Node> Either<A, L<Problem>> javaParseElement2(ParseStart<A> elementType, S java) { |
4 | JavaParser.getStaticConfiguration().setAttributeComments(false); |
5 | ParseResult<A> result = new JavaParser().parse(elementType, Providers.provider(java)); |
6 | ret result.isSuccessful() |
7 | ? (Either) eitherA(result.getResult().get()) |
8 | : (Either) eitherB(result.getProblems()); |
9 | } |
Began life as a copy of #1017230
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017231 |
Snippet name: | javaParseElement2 |
Eternal ID of this version: | #1017231/3 |
Text MD5: | 68b6e72d5622af74fafba7099b4f0c05 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-14 14:42:44 |
Source code size: | 454 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 379 / 405 |
Version history: | 2 change(s) |
Referenced in: | [show references] |