(locations)
| 104 | ]); |
| 105 | |
| 106 | function dumpAllLocations(locations) { |
| 107 | var lines = source.split('\n'); |
| 108 | var locations = locations.sort((loc1, loc2) => { |
| 109 | if (loc2.lineNumber !== loc1.lineNumber) return loc2.lineNumber - loc1.lineNumber; |
| 110 | return loc2.columnNumber - loc1.columnNumber; |
| 111 | }); |
| 112 | for (var location of locations) { |
| 113 | var line = lines[location.lineNumber]; |
| 114 | line = line.slice(0, location.columnNumber) + locationMark(location.type) + line.slice(location.columnNumber); |
| 115 | lines[location.lineNumber] = line; |
| 116 | } |
| 117 | lines = lines.filter(line => line.indexOf('//# sourceURL=') === -1); |
| 118 | InspectorTest.log(lines.join('\n') + '\n'); |
| 119 | } |
| 120 | |
| 121 | function locationMark(type) { |
| 122 | if (type === 'return') return '|R|'; |
no test coverage detected