Sha256: 648edcc5ba1642dd47197010628350aa54722b0aad8ba9b0f6b8f24e0735e921
Contents?: true
Size: 523 Bytes
Versions: 11
Compression:
Stored size: 523 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isScope; var _generated = require("./generated"); function isScope(node, parent) { if ((0, _generated.isBlockStatement)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { return false; } if ((0, _generated.isPattern)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { return true; } return (0, _generated.isScopable)(node); }
Version data entries
11 entries across 10 versions & 3 rubygems