// returns: (action body, closing line number) // or null static Pair<S, Int> ctxAction(L<S> lines, int i) { while (i <= l(lines) && emptyAfterTrim(get(lines, i))) ++i; if (!jmatch("ACTION", get(lines, i))) null; int closing = indexOfClosingCurlyBracket(lines, i+1); S body = tok_unCurlyBracket(lines(subList(lines, i+1, closing+1))); ret pair(body, closing); }
Began life as a copy of #1008883
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008894 |
| Snippet name: | ctxAction - old, use ctxCase(s) instead |
| Eternal ID of this version: | #1008894/4 |
| Text MD5: | d0d7cb34bb9ed3e4e359917faa9e6688 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-22 19:55:41 |
| Source code size: | 379 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 755 / 801 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |