Libraryless. Click here for Pure Java version (11431L/64K).
1 | // token range is from function name to closing bracket+1 |
2 | static TokenRange tok_findFunctionCall(LS tok, S functionName) {
|
3 | int idx = jfind(tok, contains(functionName, "(") ? functionName : functionName + "(");
|
4 | if (idx < 0) null; |
5 | int iOpening = indexOf(tok, "(", idx);
|
6 | int iEnd = findEndOfBracketPart(tok, iOpening); |
7 | ret new TokenRange(idx, iEnd); |
8 | } |
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/6 |
| Text MD5: | 50b6e1633e2d1013b572ce52149284f9 |
| Transpilation MD5: | 0876bce55b80bd8565cb00b81ad4dc0a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2023-12-12 19:22:26 |
| Source code size: | 365 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 820 / 1020 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |