MCPcopy Create free account
hub / github.com/angular/components / unwrapExpression

Function unwrapExpression

src/cdk/schematics/update-tool/utils/functions.ts:16–18  ·  view source on GitHub ↗
(node: ts.Expression | ts.ParenthesizedExpression)

Source from the content-addressed store, hash-verified

14 * referring to the inner expression. e.g "exp".
15 */
16export function unwrapExpression(node: ts.Expression | ts.ParenthesizedExpression): ts.Expression {
17 return ts.isParenthesizedExpression(node) ? unwrapExpression(node.expression) : node;
18}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected