(container, i, astrPartial)
| 181 | } |
| 182 | |
| 183 | function crawlIntoTrace(container, i, astrPartial) { |
| 184 | var item = container[stack[i]]; |
| 185 | var newAstrPartial = astrPartial + stack[i]; |
| 186 | if(i === stack.length - 1) { |
| 187 | if(isArrayOrTypedArray(item)) { |
| 188 | arrayAttributes.push(baseAttrName + newAstrPartial); |
| 189 | } |
| 190 | } else { |
| 191 | if(isArrayStack[i]) { |
| 192 | if(Array.isArray(item)) { |
| 193 | for(var j = 0; j < item.length; j++) { |
| 194 | if(isPlainObject(item[j])) { |
| 195 | crawlIntoTrace(item[j], i + 1, newAstrPartial + '[' + j + '].'); |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | } else if(isPlainObject(item)) { |
| 200 | crawlIntoTrace(item, i + 1, newAstrPartial + '.'); |
| 201 | } |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | baseContainer = trace; |
| 206 | baseAttrName = ''; |
no test coverage detected
searching dependent graphs…