Libraryless. Click here for Pure Java version (5166L/29K).
1 | static LS tok_importedStaticFunctionNamesWithPackages_v2(LS tok) { |
2 | new LS names; |
3 | fOr (HasIndex idx : indicesOf_collectionOfHasIndex(tok, "import")) { |
4 | int i = idx.idx; |
5 | if (eq(get(tok, i+2), "static")) { |
6 | int j = findEndOfStatement(tok, i); // index of ;+1 |
7 | S s = get(tok, j-3); |
8 | if (isIdentifier(s)) |
9 | names.add(join(codeTokens(subList(tok, i+3, j-1))); |
10 | i = j-1; |
11 | } |
12 | } |
13 | ret names; |
14 | } |
Began life as a copy of #1031484
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034673 |
Snippet name: | tok_importedStaticFunctionNamesWithPackages_v2 |
Eternal ID of this version: | #1034673/3 |
Text MD5: | c6dccd025d6493aa1ab7a4715104a1a1 |
Transpilation MD5: | 6c8bf06eaf596df487a283e2e96245f7 |
Author: | stefan |
Category: | java / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-01 16:49:36 |
Source code size: | 438 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 235 |
Version history: | 2 change(s) |
Referenced in: | [show references] |