Libraryless. Click here for Pure Java version (14881L/96K).
1 | static LPair<Concept.Ref, S> scanConceptForRefsWithFieldNames(Concept c) { |
2 | LPair<Concept.Ref, S> refs = new L; |
3 | if (c != null) for (S field, O o : objectToMap(c)) { |
4 | if (o cast Concept.Ref) |
5 | refs.add(pair(o, field)); |
6 | else if (o cast Concept.RefL) |
7 | for (int i = 0; i < l(o.l); i++) |
8 | refs.add(pair((Concept.Ref) o.l.get(i), field + "[" + (i+1) + "]")); |
9 | } |
10 | ret refs; |
11 | } |
Began life as a copy of #1030876
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030921 |
Snippet name: | scanConceptForRefsWithFieldNames |
Eternal ID of this version: | #1030921/10 |
Text MD5: | c9e911a190da56d074ed87b1efaf7146 |
Transpilation MD5: | 65b0849838ee395bab32f07b5eb70e28 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-10 23:30:38 |
Source code size: | 405 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 171 / 275 |
Version history: | 9 change(s) |
Referenced in: | [show references] |