Sha256: a3cf7f2a3cf82cbdbcb803bdad8e1e89551f24cc706fff4e28372db1d4565319

Contents?: true

Size: 593 Bytes

Versions: 30

Compression:

Stored size: 593 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, {
    body: node
  })) {
    return false;
  }

  if ((0, _generated.isBlockStatement)(node) && (0, _generated.isCatchClause)(parent, {
    body: node
  })) {
    return false;
  }

  if ((0, _generated.isPattern)(node) && (0, _generated.isFunction)(parent)) {
    return true;
  }

  return (0, _generated.isScopable)(node);
}

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.7 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.6 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.5 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.4 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.3 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.2 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.1 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.3.5 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-5.0.0 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.3.4 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.3.3 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.3.2 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.3.1 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.3 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.2.3 node_modules/@babel/types/lib/validators/isScope.js
tang-0.2.1 spec/tang_app/node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.2.2 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.2.1 node_modules/@babel/types/lib/validators/isScope.js
trusty-cms-4.2 node_modules/@babel/types/lib/validators/isScope.js