20 lines
756 B
JavaScript
Executable File
20 lines
756 B
JavaScript
Executable File
"use strict";
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.unwrapExpression = unwrapExpression;
|
|
const ts = require("typescript");
|
|
/**
|
|
* Unwraps a given expression TypeScript node. Expressions can be wrapped within multiple
|
|
* parentheses. e.g. "(((({exp}))))()". The function should return the TypeScript node
|
|
* referring to the inner expression. e.g "exp".
|
|
*/
|
|
function unwrapExpression(node) {
|
|
return ts.isParenthesizedExpression(node) ? unwrapExpression(node.expression) : node;
|
|
}
|
|
//# sourceMappingURL=functions.js.map
|