MCPcopy Create free account
hub / github.com/nodejs/node / containsParseError

Function containsParseError

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

Source from the content-addressed store, hash-verified

14501 ts.hasChangesInResolutions = hasChangesInResolutions;
14502 // Returns true if this node contains a parse error anywhere underneath it.
14503 function containsParseError(node) {
14504 aggregateChildData(node);
14505 return (node.flags & 524288 /* NodeFlags.ThisNodeOrAnySubNodesHasError */) !== 0;
14506 }
14507 ts.containsParseError = containsParseError;
14508 function aggregateChildData(node) {
14509 if (!(node.flags & 1048576 /* NodeFlags.HasAggregatedChildData */)) {

Callers

nothing calls this directly

Calls 1

aggregateChildDataFunction · 0.85

Tested by

no test coverage detected