1 | static Set<S> collectSnippetIDsInTranspiledSnippet(S snippetID) { |
2 | if (isImageSnippetID(snippetID)) ret new Set; |
3 | int type = getSnippetType(snippetID); |
4 | if (!isJavaxCompilableSnippetTypeExceptInclude(type)) |
5 | ret new Set; |
6 | S src = getServerTranspiled2(snippetID); |
7 | //Set<S> set = collectSnippetIDsInText(src); |
8 | Set<S> set = collectSnippetIDsInJavaSource(dropFirstLine(src)); // skip comments |
9 | LS libs = map fsI(regexpAll("[0-9]+", firstLine(src)); |
10 | print("Libs for " + snippetID + ": " + libs); |
11 | addAll(set, libs); |
12 | ret set; |
13 | } |
Began life as a copy of #1022614
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022616 |
Snippet name: | collectSnippetIDsInTranspiledSnippet (also includes the libraries it uses, but not the translators) |
Eternal ID of this version: | #1022616/12 |
Text MD5: | bef2f9171e30ffe699f55350b7591ed9 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-25 18:21:06 |
Source code size: | 550 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 254 / 309 |
Version history: | 11 change(s) |
Referenced in: | [show references] |