(otherSet, options = {})
| 160 | // and singlePackage. If arch is set, skips SourceProcessors that |
| 161 | // don't match it. |
| 162 | merge(otherSet, options = {}) { |
| 163 | const { arch } = options; |
| 164 | buildmessage.assertInJob(); |
| 165 | otherSet.allSourceProcessors.forEach((sourceProcessor) => { |
| 166 | if (! arch || sourceProcessor.relevantForArch(arch)) { |
| 167 | this.addSourceProcessor(sourceProcessor); |
| 168 | } |
| 169 | }); |
| 170 | _.each(otherSet._legacyHandlers, (info, extension) => { |
| 171 | const { handler, packageDisplayName, isTemplate, archMatching } = info; |
| 172 | this.addLegacyHandler( |
| 173 | {extension, handler, packageDisplayName, isTemplate, archMatching}); |
| 174 | }); |
| 175 | } |
| 176 | |
| 177 | // Note: Only returns SourceProcessors, not legacy handlers. |
| 178 | getByExtension(extension) { |
no test coverage detected