(token: InterpolationToken | AttributeValueInterpolationToken)
| 353 | // Normalize expression whitespace by parsing and re-serializing it. This makes |
| 354 | // message IDs more durable to insignificant whitespace changes. |
| 355 | normalizeExpression(token: InterpolationToken | AttributeValueInterpolationToken): string { |
| 356 | const expression = token.parts[1]; |
| 357 | const expr = this._expressionParser.parseBinding( |
| 358 | expression, |
| 359 | /* location */ token.sourceSpan, |
| 360 | /* absoluteOffset */ token.sourceSpan.start.offset, |
| 361 | ); |
| 362 | return serializeExpression(expr); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | /** |
no test coverage detected