Libraryless. Click here for Pure Java version (5317L/30K).
| 1 | // [opening bracket to closing bracket + 1] | 
| 2 | static L<IntRange> tok_allCurlyBodies(LS tok, int i default 1) {
 | 
| 3 | new L<IntRange> l; | 
| 4 | IntRange r; | 
| 5 |   while ((r = tok_findCurlyBody(tok, i)) != null) {
 | 
| 6 | l.add(r); | 
| 7 | i = r.end+1; | 
| 8 | } | 
| 9 | ret l; | 
| 10 | } | 
Began life as a copy of #1028895
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034458 | 
| Snippet name: | tok_allCurlyBodies | 
| Eternal ID of this version: | #1034458/1 | 
| Text MD5: | 16459a152deb9e0a6b313f52ac678fcd | 
| Transpilation MD5: | a8bd77a760689946c648dd0d740b9699 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-02-08 01:13:36 | 
| Source code size: | 250 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 369 / 479 | 
| Referenced in: | [show references] |