Libraryless. Click here for Pure Java version (11431L/64K).
// token range is from function name to closing bracket+1 static TokenRange tok_findFunctionCall(LS tok, S functionName) { int idx = jfind(tok, functionName + "("); if (idx < 0) null; int iOpening = indexOf(tok, "(", idx); int iEnd = findEndOfBracketPart(tok, iOpening); ret new TokenRange(idx, iEnd); }
Began life as a copy of #1031419
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1037253 |
Snippet name: | tok_findFunctionCall |
Eternal ID of this version: | #1037253/5 |
Text MD5: | b2553cec7ed91a26776d05ac7207689d |
Transpilation MD5: | 91249ed3985bfbb6c4194c02de7a0293 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-09-22 17:45:23 |
Source code size: | 320 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 53 / 82 |
Version history: | 4 change(s) |
Referenced in: | [show references] |