(mc, stype, node)
| 15047 | } |
| 15048 | |
| 15049 | function processNoMerge(mc, stype, node) { |
| 15050 | var result = {}; |
| 15051 | |
| 15052 | stype.dataProperties.forEach(function (dp) { |
| 15053 | if (dp.isComplexProperty) { |
| 15054 | result[dp.name] = __map(node[dp.nameOnServer], function (v) { |
| 15055 | return processNoMerge(mc, dp.dataType, v); |
| 15056 | }); |
| 15057 | } else { |
| 15058 | result[dp.name] = parseRawValue(node[dp.nameOnServer], dp.dataType); |
| 15059 | } |
| 15060 | }); |
| 15061 | |
| 15062 | stype.navigationProperties && stype.navigationProperties.forEach(function (np) { |
| 15063 | var nodeContext = { nodeType: "navProp", navigationProperty: np }; |
| 15064 | visitNode(node[np.nameOnServer], mc, nodeContext, result, np.name); |
| 15065 | }); |
| 15066 | |
| 15067 | return result; |
| 15068 | } |
| 15069 | |
| 15070 | function processAnonType(mc, node) { |
| 15071 | // node is guaranteed to be an object by this point, i.e. not a scalar |
no test coverage detected