1 | sS checkStandardFunctionForSafety(S fname) { |
2 | S listName = "JavaX Identifier Safety"; |
3 | Set<S> identifiers = setMinus(tok_allIdentifiers(textOfStandardFunction(fname)), fname); |
4 | |
5 | // TODO: should lock on map |
6 | Set<S> statuses = treeSet(); |
7 | final SS map = mechHashMap_fresh(listName); |
8 | bool changes = false; |
9 | for (S id : identifiers) { |
10 | S status = map.get(id); |
11 | if (status == null) |
12 | if (mapPut_trueIfChanged(map, id, status = "?")) set changes; |
13 | statuses.addAll(tokSplitAtComma(status)); |
14 | } |
15 | S status = or2(joinWithComma(simplifySafetyTags(statuses)), "?"); |
16 | if (mapPut_trueIfChanged(map, fname, status)) set changes; |
17 | if (changes) |
18 | uploadMechMap(listName, map); |
19 | ret status; |
20 | } |
Began life as a copy of #1015756
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1015762 |
Snippet name: | checkStandardFunctionForSafety (OLD) |
Eternal ID of this version: | #1015762/8 |
Text MD5: | c39cdf318dea712a5f0eec727ab10010 |
Author: | stefan |
Category: | javax / code analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-06 07:42:29 |
Source code size: | 723 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 460 / 504 |
Version history: | 7 change(s) |
Referenced in: | [show references] |