Libraryless. Click here for Pure Java version (43L/1K).
1 | static int tok_findVarDeclarationName(LS tok) {
|
2 | int j = 1; |
3 | L<S> special = litlist("=", "{", ";");
|
4 | while (j < tok.size() && !special.contains(tok.get(j))) |
5 | j += 2; |
6 | j -= 2; |
7 | while (j > 1 && litlist("[", "]").contains(tok.get(j)))
|
8 | j -= 2; |
9 | ret j; |
10 | } |
Began life as a copy of #1001161
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031429 |
| Snippet name: | tok_findVarDeclarationName |
| Eternal ID of this version: | #1031429/1 |
| Text MD5: | 1facc88f320c41206b81109d14d6ddcf |
| Transpilation MD5: | da38f49f0bed0af6cb725c2f0e68e832 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-12 07:47:23 |
| Source code size: | 290 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 399 / 513 |
| Referenced in: | [show references] |