* @param {string} ref * @return {string}
(ref)
| 541 | * @return {string} |
| 542 | */ |
| 543 | optimizeReference(ref) { |
| 544 | if (ref in this.referenceMap) { |
| 545 | return this.referenceMap[ref]; |
| 546 | } |
| 547 | const mappedRef = String(this.nextMappedRef++); |
| 548 | this.referenceMap[ref] = mappedRef; |
| 549 | this.optimizedValues[mappedRef] = this.optimizeValue(this.values[ref], 0); |
| 550 | return mappedRef; |
| 551 | } |
| 552 | |
| 553 | /** |
| 554 | * @param {!ee.api.ValueNode} value |
no test coverage detected