Sha256: 2490c528728ff32c4a8ceaeb4225fe53e48e2b18371c65020012788acd3501df

Contents?: true

Size: 446 Bytes

Versions: 7

Compression:

Stored size: 446 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isImmutable;

var _isType = require("./isType");

var _generated = require("./generated");

function isImmutable(node) {
  if ((0, _isType.default)(node.type, "Immutable")) return true;

  if ((0, _generated.isIdentifier)(node)) {
    if (node.name === "undefined") {
      return true;
    } else {
      return false;
    }
  }

  return false;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js
disco_app-0.15.2 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js
disco_app-0.18.4 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js
disco_app-0.18.1 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js
disco_app-0.14.0 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/validators/isImmutable.js