Libraryless. Click here for Pure Java version (5166L/29K).
static LS tok_importedStaticFunctionNamesWithPackages_v2(LS tok) { new LS names; fOr (HasIndex idx : indicesOf_collectionOfHasIndex(tok, "import")) { int i = idx.idx; if (eq(get(tok, i+2), "static")) { int j = findEndOfStatement(tok, i); // index of ;+1 S s = get(tok, j-3); if (isIdentifier(s)) names.add(join(codeTokens(subList(tok, i+3, j-1))); i = j-1; } } ret names; }
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: | 167 / 233 |
Version history: | 2 change(s) |
Referenced in: | [show references] |