MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / unwrap

Function unwrap

__tests__/child-process-windows-hide.test.ts:126–130  ·  view source on GitHub ↗
(expr: ts.Expression)

Source from the content-addressed store, hash-verified

124}
125
126function unwrap(expr: ts.Expression): ts.Expression {
127 let e = expr;
128 while (ts.isAsExpression(e) || ts.isParenthesizedExpression(e) || ts.isSatisfiesExpression(e) || ts.isTypeAssertionExpression(e)) e = e.expression;
129 return e;
130}
131
132function isCallee(node: ts.Node): boolean {
133 return ts.isCallExpression(node.parent) && node.parent.expression === node;

Callers 1

hideStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected