Libraryless. Click here for Pure Java version (2657L/17K).
static FunctionCall parseFragmentExpressionToFunctionCall(O o) { if (!o instanceof L) null; L l = cast o; O first = first(l); if (!first instanceof Fragment) null; S first2 = first/Fragment.text; if (!isIdentifierPlusOpeningBracket(first2)) null; if (!eq(last(l), Fragment(")"))) null; int i = 1, n = l(l)-1; S fname = dropLast(first2); new L args; while (i < n) { args.add(get(l, i++)); if (i >= n) break; if (!eq(get(l, i++), Fragment(","))) null; } ret FunctionCall(fname, toObjectArray(args)); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027883 |
| Snippet name: | parseFragmentExpressionToFunctionCall |
| Eternal ID of this version: | #1027883/3 |
| Text MD5: | 609e626125bfec7b1fde6d15818a4433 |
| Transpilation MD5: | 02b832c09de6523bf49521c3e9e4984e |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-16 14:45:21 |
| Source code size: | 554 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 429 / 546 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |