(token: InterpolationToken | AttributeValueInterpolationToken)
| 373 | // Normalize expression whitespace by parsing and re-serializing it. This makes |
| 374 | // message IDs more durable to insignificant whitespace changes. |
| 375 | normalizeExpression(token: InterpolationToken | AttributeValueInterpolationToken): string { |
| 376 | const expression = token.parts[1]; |
| 377 | const expr = this._expressionParser.parseBinding( |
| 378 | expression, |
| 379 | /* location */ token.sourceSpan, |
| 380 | /* absoluteOffset */ token.sourceSpan.start.offset, |
| 381 | ); |
| 382 | return serializeExpression(expr); |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | /** |
no test coverage detected