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

Function wrapInParensIfNecessary

packages/localize/tools/src/source_file_utils.ts:269–275  ·  view source on GitHub ↗
(expression: t.Expression)

Source from the content-addressed store, hash-verified

267 * @param expression The expression to potentially wrap.
268 */
269export function wrapInParensIfNecessary(expression: t.Expression): t.Expression {
270 if (t.isBinaryExpression(expression)) {
271 return t.parenthesizedExpression(expression);
272 } else {
273 return expression;
274 }
275}
276
277/**
278 * Extract the string values from an `array` of string literals.

Callers 2

buildLocalizeReplacementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…