MCPcopy Index your code
hub / github.com/angular/angular / normalizeExpression

Method normalizeExpression

packages/compiler/src/i18n/i18n_parser.ts:375–383  ·  view source on GitHub ↗
(token: InterpolationToken | AttributeValueInterpolationToken)

Source from the content-addressed store, hash-verified

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/**

Callers 1

Calls 1

parseBindingMethod · 0.45

Tested by

no test coverage detected