Sha256: bdeeb15b7134bee4f69bdfc52110d155aacf3d2446ce6402ec4f4e6cd1ca135a

Contents?: true

Size: 1.04 KB

Versions: 51

Compression:

Stored size: 1.04 KB

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS = void 0;

var _utils = require("./utils");

const PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"];
exports.PLACEHOLDERS = PLACEHOLDERS;
const PLACEHOLDERS_ALIAS = {
  Declaration: ["Statement"],
  Pattern: ["PatternLike", "LVal"]
};
exports.PLACEHOLDERS_ALIAS = PLACEHOLDERS_ALIAS;

for (const type of PLACEHOLDERS) {
  const alias = _utils.ALIAS_KEYS[type];
  if (alias && alias.length) PLACEHOLDERS_ALIAS[type] = alias;
}

const PLACEHOLDERS_FLIPPED_ALIAS = {};
exports.PLACEHOLDERS_FLIPPED_ALIAS = PLACEHOLDERS_FLIPPED_ALIAS;
Object.keys(PLACEHOLDERS_ALIAS).forEach(type => {
  PLACEHOLDERS_ALIAS[type].forEach(alias => {
    if (!Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS, alias)) {
      PLACEHOLDERS_FLIPPED_ALIAS[alias] = [];
    }

    PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type);
  });
});

Version data entries

51 entries across 51 versions & 7 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.18.2 test/dummy/node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.7 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.6 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.5 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.4 node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.16.1 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.15.2 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.3 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.2 node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.18.4 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.18.1 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.14.0 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.1 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-4.3.5 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-5.0.0 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-4.3.4 node_modules/@babel/types/lib/definitions/placeholders.js
trusty-cms-4.3.3 node_modules/@babel/types/lib/definitions/placeholders.js