Sha256: 680a8aa87a7752eafbc9a85cdf513ae7b6af4dd72b4bdb762efcc3750f389706

Contents?: true

Size: 598 Bytes

Versions: 7

Compression:

Stored size: 598 Bytes

Contents

"use strict";

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

var _isValidIdentifier = require("./isValidIdentifier");

const RESERVED_WORDS_ES3_ONLY = new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implements", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transient", "volatile"]);

function isValidES3Identifier(name) {
  return (0, _isValidIdentifier.default)(name) && !RESERVED_WORDS_ES3_ONLY.has(name);
}

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/isValidES3Identifier.js
disco_app-0.15.2 test/dummy/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
disco_app-0.18.4 test/dummy/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
disco_app-0.18.1 test/dummy/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
disco_app-0.14.0 test/dummy/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/validators/isValidES3Identifier.js