1 | static LS tok_importedStaticFunctionNamesWithPackages(LS tok) { |
2 | new LS names; |
3 | for (int i = 1; i < l(tok); i += 2) |
4 | if (eq(tok.get(i), "import") && eq(get(tok, i+2), "static")) { |
5 | int j = findEndOfStatement(tok, i); // index of ;+1 |
6 | S s = get(tok, j-3); |
7 | if (isIdentifier(s)) |
8 | names.add(join(codeTokens(subList(tok, i+3, j-1))); |
9 | i = j-1; |
10 | } |
11 | ret names; |
12 | } |
Began life as a copy of #1016584
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031484 |
Snippet name: | tok_importedStaticFunctionNamesWithPackages |
Eternal ID of this version: | #1031484/4 |
Text MD5: | 5cc8d87abe45fb134bf20298baf40feb |
Author: | stefan |
Category: | java / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-14 07:43:59 |
Source code size: | 403 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 215 / 243 |
Version history: | 3 change(s) |
Referenced in: | [show references] |