1 | static L<Web> ai_loadWebsFromFile(File f, S src) { |
2 | new L<Web> webs; |
3 | ai_loadWebsFromFile(f, src, webs); |
4 | ret webs; |
5 | } |
6 | |
7 | static void ai_loadWebsFromFile(File f, S src, L<Web> websOut) { |
8 | ai_loadWebsFromFile(f, src, websOut, null); |
9 | } |
10 | |
11 | static void ai_loadWebsFromFile(File f, S src, L<Web> websOut, Map<Web, SoftwareMadeWeb> furtherInfoMap) { |
12 | //if (hasMultipleCores()) ai_loadWebsFromFile_parallel(f, src, websOut, furtherInfoMap); |
13 | |
14 | IterableIterator<SoftwareMadeWeb> l = scanLog_unstructure_iterator(f); |
15 | // TODO: clean up file handle in case of error |
16 | for (SoftwareMadeWeb o : l) pcall { |
17 | Web web = o.web; |
18 | if (web == null) |
19 | web = web_unstructure(o.structure); |
20 | if (web != null) { |
21 | websOut.add(web_intern(web_setSourceIfEmpty(web, src))); |
22 | mapPut(furtherInfoMap, web, o); |
23 | } |
24 | } |
25 | } |
Began life as a copy of #1011177
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012072 |
Snippet name: | ai_loadWebsFromFile |
Eternal ID of this version: | #1012072/7 |
Text MD5: | 2fc865bfcf9b4b3abee61f74b4eb3dee |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-26 16:27:48 |
Source code size: | 840 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 507 / 551 |
Version history: | 6 change(s) |
Referenced in: | [show references] |