Libraryless. Click here for Pure Java version (4039L/27K).
1 | static SS agiBlue_findProbableConcreteSlicesForMetaSlices() { |
2 | new SS metaToConcrete; // id to id |
3 | |
4 | SS idToName = agiBlue_sliceNamesMap(); |
5 | MultiMap<S> nameToID = reversedMapAsMultiMap(idToName); |
6 | for (S metaID, metaName : idToName) { |
7 | S name = dropSuffixICOrNull_trim("[Meta]", metaName); |
8 | if (name == null) continue; |
9 | S concrete = agiBlue_concreteSliceOfMetaSlice(metaID); |
10 | if (nempty(concrete)) |
11 | continue with print("Found defined concrete slice for meta slice " + metaID + "/" + metaName + ": " + concrete); |
12 | |
13 | LS ids = nameToID.get(name); |
14 | if (empty(ids)) |
15 | print("Concrete slice for meta slice " + metaID + "/" + metaName + " not found"); |
16 | else if (l(ids) > 1) |
17 | print("Multiple possible concrete slices for meta slice " + metaID + "/" + metaName + ": " + ids); |
18 | else { |
19 | print("Found concrete slice for meta slice " + metaID + "/" + metaName + ": " + first(ids)); |
20 | metaToConcrete.put(metaID, first(ids)); |
21 | } |
22 | } |
23 | ret metaToConcrete; |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024489 |
Snippet name: | agiBlue_findProbableConcreteSlicesForMetaSlices |
Eternal ID of this version: | #1024489/4 |
Text MD5: | a0fc6a6e4d3afdfb8b9e133463a65dd9 |
Transpilation MD5: | dff0ea9f6d611cedc0adb2ad08fd1e4b |
Author: | stefan |
Category: | javax / agi.blue |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-14 12:37:35 |
Source code size: | 1025 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 199 / 284 |
Version history: | 3 change(s) |
Referenced in: | [show references] |