1 | sbool setOptAllDyn_debug; |
2 | |
3 | static void setOptAllDyn(DynamicObject o, Map<S, O> fields) { |
4 | if (fields == null) ret; |
5 | for (S field : keys(fields)) { |
6 | O val = fields.get(field); |
7 | bool has = hasField(o, field); |
8 | if (has) |
9 | setOpt(o, field, val); |
10 | else { |
11 | o.fieldValues.put(intern(field), val); |
12 | if (setOptAllDyn_debug) print("setOptAllDyn added dyn " + field + " to " + o + " [value: " + val + ", fieldValues = " + systemHashCode(o.fieldValues) + ", " + struct(keys(o.fieldValues)) + "]"); |
13 | } |
14 | } |
15 | } |
Began life as a copy of #1005268
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: | #1015251 |
Snippet name: | setOptAllDyn old |
Eternal ID of this version: | #1015251/1 |
Text MD5: | 1b2bf8cd13988db411180c1d88e753d0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-11 02:13:29 |
Source code size: | 539 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 407 |
Referenced in: | [show references] |