(sp, things, byThing, errorPrefix)
| 113 | this.allSourceProcessors.push(sp); |
| 114 | } |
| 115 | _addSourceProcessorHelper(sp, things, byThing, errorPrefix) { |
| 116 | buildmessage.assertInJob(); |
| 117 | |
| 118 | things.forEach((thing) => { |
| 119 | if (byThing.hasOwnProperty(thing)) { |
| 120 | if (this._allowConflicts) { |
| 121 | byThing[thing].push(sp); |
| 122 | } else { |
| 123 | this._conflictError(sp.isopack.displayName(), |
| 124 | byThing[thing][0].isopack.displayName(), |
| 125 | errorPrefix + thing); |
| 126 | // recover by ignoring this one |
| 127 | } |
| 128 | } else { |
| 129 | byThing[thing] = [sp]; |
| 130 | } |
| 131 | }); |
| 132 | } |
| 133 | |
| 134 | addLegacyHandler({ extension, handler, packageDisplayName, isTemplate, |
| 135 | archMatching }) { |
no test coverage detected