MCPcopy Create free account
hub / github.com/reactjs/react-rails / _nodeIsBlockScopeBoundary

Function _nodeIsBlockScopeBoundary

lib/assets/javascripts/JSXTransformer.js:12306–12313  ·  view source on GitHub ↗
(node, parentNode)

Source from the content-addressed store, hash-verified

12304}
12305
12306function _nodeIsBlockScopeBoundary(node, parentNode) {
12307 if (node.type === Syntax.Program) {
12308 return false;
12309 }
12310
12311 return node.type === Syntax.BlockStatement
12312 && parentNode.type === Syntax.CatchClause;
12313}
12314
12315/**
12316 * @param {object} node

Callers 1

traverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected