1 | // returns: (action body, closing line number) |
2 | // or null |
3 | static Pair<S, Int> ctxAction(L<S> lines, int i) { |
4 | while (i <= l(lines) && emptyAfterTrim(get(lines, i))) ++i; |
5 | if (!jmatch("ACTION", get(lines, i))) null; |
6 | int closing = indexOfClosingCurlyBracket(lines, i+1); |
7 | S body = tok_unCurlyBracket(lines(subList(lines, i+1, closing+1))); |
8 | ret pair(body, closing); |
9 | } |
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: | 479 / 540 |
Version history: | 3 change(s) |
Referenced in: | [show references] |