(remoteRefs)
| 19 | } |
| 20 | |
| 21 | translate(remoteRefs) { |
| 22 | const result = [] |
| 23 | for (const rule of this.rules) { |
| 24 | for (const remoteRef of remoteRefs) { |
| 25 | const localRef = rule.translate(remoteRef) |
| 26 | if (localRef) { |
| 27 | result.push([remoteRef, localRef]) |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | return result |
| 32 | } |
| 33 | |
| 34 | translateOne(remoteRef) { |
| 35 | let result = null |