Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1028895 // tok_findCurlyBody - functionality probably duplicated in tok_methodBody and tok_classBody

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2972L) is out of date.

1  
// opening bracket to closing bracket + 1
2  
static IntRange tok_findCurlyBody(LS tok, int i default 1) {
3  
  int idx = findCodeTokens(tok, i, false, "{");
4  
  if (idx < 0) null;
5  
  int j = findEndOfBracketPart(tok, idx);
6  
  ret intRange(idx, j);
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028895
Snippet name: tok_findCurlyBody - functionality probably duplicated in tok_methodBody and tok_classBody
Eternal ID of this version: #1028895/4
Text MD5: 9f7bd7fc73788154e5fcd9a744b251fd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-08 16:04:10
Source code size: 245 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 346
Version history: 3 change(s)
Referenced in: [show references]