MCPcopy Index your code
hub / github.com/nodejs/node / getExtractableParent

Function getExtractableParent

test/fixtures/snapshot/typescript.js:161634–161636  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

161632 }
161633 }
161634 function getExtractableParent(node) {
161635 return ts.findAncestor(node, function (node) { return node.parent && isExtractableExpression(node) && !ts.isBinaryExpression(node.parent); });
161636 }
161637 /**
161638 * Computes whether or not a node represents an expression in a position where it could
161639 * be extracted.

Callers 1

getRangeToExtractFunction · 0.85

Calls 1

isExtractableExpressionFunction · 0.85

Tested by

no test coverage detected