(inputDefine, inputCreated, inputRecorderSetupInputId)
| 769 | } |
| 770 | |
| 771 | function storeToInputDict(inputDefine, inputCreated, inputRecorderSetupInputId) { |
| 772 | var id = retrieveId(inputDefine, 'id'); |
| 773 | if (id != null) { |
| 774 | id = '' + id; |
| 775 | if (_inputsDict[id]) { |
| 776 | throw new Error(errMsgPrefix + ' Duplicate input id: ' + id); |
| 777 | } |
| 778 | } |
| 779 | if (id == null) { |
| 780 | var text = retrieveValue(inputDefine.text, '') + ''; |
| 781 | if (text) { |
| 782 | var textBasedId = '__inputs|' + text + '|'; |
| 783 | if (!_inputsDict[textBasedId]) { |
| 784 | id = textBasedId; |
| 785 | } |
| 786 | } |
| 787 | } |
| 788 | if (id == null) { |
| 789 | id = generateNonPersistentId('__inputs_non_persist'); |
| 790 | assert(!_inputsDict[id]); |
| 791 | inputCreated.idCanNotPersist = true; |
| 792 | } |
| 793 | inputCreated.id = id; |
| 794 | inputCreated.__inputDefine = inputDefine; |
| 795 | _inputsDict[id] = inputCreated; |
| 796 | if (inputRecorderSetupInputId) { |
| 797 | inputRecorderSetupInputId(id); |
| 798 | } |
| 799 | return id; |
| 800 | } |
| 801 | |
| 802 | function retrieveAndVerifyGroup(groupId) { |
| 803 | var groupCreated = _inputsDict[groupId]; |
no test coverage detected
searching dependent graphs…