Socket
Socket
Sign inDemoInstall

babel-types

Package Overview
Dependencies
Maintainers
6
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-types - npm Package Compare versions

Comparing version 6.9.0 to 6.9.1

40

lib/constants.js

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -14,23 +14,23 @@ exports.__esModule = true;

var STATEMENT_OR_BLOCK_KEYS = /*istanbul ignore next*/exports.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
var FLATTENABLE_KEYS = /*istanbul ignore next*/exports.FLATTENABLE_KEYS = ["body", "expressions"];
var FOR_INIT_KEYS = /*istanbul ignore next*/exports.FOR_INIT_KEYS = ["left", "init"];
var COMMENT_KEYS = /*istanbul ignore next*/exports.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
var STATEMENT_OR_BLOCK_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
var FLATTENABLE_KEYS = exports.FLATTENABLE_KEYS = ["body", "expressions"];
var FOR_INIT_KEYS = exports.FOR_INIT_KEYS = ["left", "init"];
var COMMENT_KEYS = exports.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
var LOGICAL_OPERATORS = /*istanbul ignore next*/exports.LOGICAL_OPERATORS = ["||", "&&"];
var UPDATE_OPERATORS = /*istanbul ignore next*/exports.UPDATE_OPERATORS = ["++", "--"];
var LOGICAL_OPERATORS = exports.LOGICAL_OPERATORS = ["||", "&&"];
var UPDATE_OPERATORS = exports.UPDATE_OPERATORS = ["++", "--"];
var BOOLEAN_NUMBER_BINARY_OPERATORS = /*istanbul ignore next*/exports.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
var EQUALITY_BINARY_OPERATORS = /*istanbul ignore next*/exports.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
var COMPARISON_BINARY_OPERATORS = /*istanbul ignore next*/exports.COMPARISON_BINARY_OPERATORS = [].concat(EQUALITY_BINARY_OPERATORS, ["in", "instanceof"]);
var BOOLEAN_BINARY_OPERATORS = /*istanbul ignore next*/exports.BOOLEAN_BINARY_OPERATORS = [].concat(COMPARISON_BINARY_OPERATORS, BOOLEAN_NUMBER_BINARY_OPERATORS);
var NUMBER_BINARY_OPERATORS = /*istanbul ignore next*/exports.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
var BINARY_OPERATORS = /*istanbul ignore next*/exports.BINARY_OPERATORS = ["+"].concat(NUMBER_BINARY_OPERATORS, BOOLEAN_BINARY_OPERATORS);
var BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
var EQUALITY_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
var COMPARISON_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = [].concat(EQUALITY_BINARY_OPERATORS, ["in", "instanceof"]);
var BOOLEAN_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = [].concat(COMPARISON_BINARY_OPERATORS, BOOLEAN_NUMBER_BINARY_OPERATORS);
var NUMBER_BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
var BINARY_OPERATORS = exports.BINARY_OPERATORS = ["+"].concat(NUMBER_BINARY_OPERATORS, BOOLEAN_BINARY_OPERATORS);
var BOOLEAN_UNARY_OPERATORS = /*istanbul ignore next*/exports.BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
var NUMBER_UNARY_OPERATORS = /*istanbul ignore next*/exports.NUMBER_UNARY_OPERATORS = ["+", "-", "++", "--", "~"];
var STRING_UNARY_OPERATORS = /*istanbul ignore next*/exports.STRING_UNARY_OPERATORS = ["typeof"];
var UNARY_OPERATORS = /*istanbul ignore next*/exports.UNARY_OPERATORS = ["void"].concat(BOOLEAN_UNARY_OPERATORS, NUMBER_UNARY_OPERATORS, STRING_UNARY_OPERATORS);
var BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
var NUMBER_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = ["+", "-", "++", "--", "~"];
var STRING_UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = ["typeof"];
var UNARY_OPERATORS = exports.UNARY_OPERATORS = ["void"].concat(BOOLEAN_UNARY_OPERATORS, NUMBER_UNARY_OPERATORS, STRING_UNARY_OPERATORS);
var INHERIT_KEYS = /*istanbul ignore next*/exports.INHERIT_KEYS = {
var INHERIT_KEYS = exports.INHERIT_KEYS = {
optional: ["typeAnnotation", "typeParameters", "returnType"],

@@ -40,3 +40,3 @@ force: ["start", "loc", "end"]

var BLOCK_SCOPED_SYMBOL = /*istanbul ignore next*/exports.BLOCK_SCOPED_SYMBOL = /*istanbul ignore next*/(0, _for2.default)("var used to be block scoped");
var NOT_LOCAL_BINDING = /*istanbul ignore next*/exports.NOT_LOCAL_BINDING = /*istanbul ignore next*/(0, _for2.default)("should not be considered a local binding");
var BLOCK_SCOPED_SYMBOL = exports.BLOCK_SCOPED_SYMBOL = (0, _for2.default)("var used to be block scoped");
var NOT_LOCAL_BINDING = exports.NOT_LOCAL_BINDING = (0, _for2.default)("should not be considered a local binding");

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -18,37 +18,31 @@ exports.__esModule = true;

exports.toComputedKey = toComputedKey;
/*istanbul ignore next*/exports.toSequenceExpression = toSequenceExpression;
/*istanbul ignore next*/exports.toKeyAlias = toKeyAlias;
/*istanbul ignore next*/exports.toIdentifier = toIdentifier;
/*istanbul ignore next*/exports.toBindingIdentifierName = toBindingIdentifierName;
/*istanbul ignore next*/exports.toStatement = toStatement;
/*istanbul ignore next*/exports.toExpression = toExpression;
/*istanbul ignore next*/exports.toBlock = toBlock;
/*istanbul ignore next*/exports.valueToNode = valueToNode;
exports.toSequenceExpression = toSequenceExpression;
exports.toKeyAlias = toKeyAlias;
exports.toIdentifier = toIdentifier;
exports.toBindingIdentifierName = toBindingIdentifierName;
exports.toStatement = toStatement;
exports.toExpression = toExpression;
exports.toBlock = toBlock;
exports.valueToNode = valueToNode;
var /*istanbul ignore next*/_isPlainObject = require("lodash/isPlainObject");
var _isPlainObject = require("lodash/isPlainObject");
/*istanbul ignore next*/
var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
var /*istanbul ignore next*/_isNumber = require("lodash/isNumber");
var _isNumber = require("lodash/isNumber");
/*istanbul ignore next*/
var _isNumber2 = _interopRequireDefault(_isNumber);
var /*istanbul ignore next*/_isRegExp = require("lodash/isRegExp");
var _isRegExp = require("lodash/isRegExp");
/*istanbul ignore next*/
var _isRegExp2 = _interopRequireDefault(_isRegExp);
var /*istanbul ignore next*/_isString = require("lodash/isString");
var _isString = require("lodash/isString");
/*istanbul ignore next*/
var _isString2 = _interopRequireDefault(_isString);
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -59,3 +53,3 @@

function toComputedKey(node) {
/*istanbul ignore next*/var key = arguments.length <= 1 || arguments[1] === undefined ? node.key || node.property : arguments[1];
var key = arguments.length <= 1 || arguments[1] === undefined ? node.key || node.property : arguments[1];

@@ -96,4 +90,3 @@ if (!node.computed) {

for ( /*istanbul ignore next*/var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
/*istanbul ignore next*/
for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
var _ref;

@@ -119,4 +112,3 @@

for ( /*istanbul ignore next*/var _iterator2 = node.declarations, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : (0, _getIterator3.default)(_iterator2);;) {
/*istanbul ignore next*/
for (var _iterator2 = node.declarations, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : (0, _getIterator3.default)(_iterator2);;) {
var _ref2;

@@ -187,10 +179,10 @@

// we export the TYPES constant, so we lazy-initialize it before use.
var traverse = /*istanbul ignore next*/void 0;
var traverse = void 0;
function toKeyAlias(node) {
/*istanbul ignore next*/var key = arguments.length <= 1 || arguments[1] === undefined ? node.key : arguments[1];
var key = arguments.length <= 1 || arguments[1] === undefined ? node.key : arguments[1];
if (!traverse) traverse = require("babel-traverse").default;
var alias = /*istanbul ignore next*/void 0;
var alias = void 0;

@@ -202,13 +194,13 @@ if (node.kind === "method") {

} else if (t.isStringLiteral(key)) {
alias = /*istanbul ignore next*/(0, _stringify2.default)(key.value);
alias = (0, _stringify2.default)(key.value);
} else {
alias = /*istanbul ignore next*/(0, _stringify2.default)(traverse.removeProperties(t.cloneDeep(key)));
alias = (0, _stringify2.default)(traverse.removeProperties(t.cloneDeep(key)));
}
if (node.computed) {
alias = /*istanbul ignore next*/"[" + alias + "]";
alias = "[" + alias + "]";
}
if (node.static) {
alias = /*istanbul ignore next*/"static:" + alias;
alias = "static:" + alias;
}

@@ -222,3 +214,3 @@

toKeyAlias.increment = function () {
if (toKeyAlias.uid >= /*istanbul ignore next*/_maxSafeInteger2.default) {
if (toKeyAlias.uid >= _maxSafeInteger2.default) {
return toKeyAlias.uid = 0;

@@ -245,3 +237,3 @@ } else {

if (!t.isValidIdentifier(name)) {
name = /*istanbul ignore next*/"_" + name;
name = "_" + name;
}

@@ -269,3 +261,3 @@

var mustHaveId = false;
var newType = /*istanbul ignore next*/void 0;
var newType = void 0;

@@ -290,3 +282,3 @@ if (t.isClass(node)) {

} else {
throw new Error( /*istanbul ignore next*/"cannot turn " + node.type + " to a statement");
throw new Error("cannot turn " + node.type + " to a statement");
}

@@ -314,3 +306,3 @@ }

} else {
throw new Error( /*istanbul ignore next*/"cannot turn " + node.type + " to an expression");
throw new Error("cannot turn " + node.type + " to an expression");
}

@@ -360,3 +352,3 @@ }

// strings
if ( /*istanbul ignore next*/(0, _isString2.default)(value)) {
if ((0, _isString2.default)(value)) {
return t.stringLiteral(value);

@@ -366,3 +358,3 @@ }

// numbers
if ( /*istanbul ignore next*/(0, _isNumber2.default)(value)) {
if ((0, _isNumber2.default)(value)) {
return t.numericLiteral(value);

@@ -372,3 +364,3 @@ }

// regexes
if ( /*istanbul ignore next*/(0, _isRegExp2.default)(value)) {
if ((0, _isRegExp2.default)(value)) {
var pattern = value.source;

@@ -385,6 +377,6 @@ var flags = value.toString().match(/\/([a-z]+|)$/)[1];

// object
if ( /*istanbul ignore next*/(0, _isPlainObject2.default)(value)) {
if ((0, _isPlainObject2.default)(value)) {
var props = [];
for (var key in value) {
var nodeKey = /*istanbul ignore next*/void 0;
var nodeKey = void 0;
if (t.isValidIdentifier(key)) {

@@ -391,0 +383,0 @@ nodeKey = t.identifier(key);

@@ -1,13 +0,11 @@

/*istanbul ignore next*/"use strict";
"use strict";
var /*istanbul ignore next*/_index = require("../index");
var _index = require("../index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
var /*istanbul ignore next*/_constants = require("../constants");
var _constants = require("../constants");
var /*istanbul ignore next*/_index2 = require("./index");
var _index2 = require("./index");
/*istanbul ignore next*/
var _index3 = _interopRequireDefault(_index2);

@@ -19,6 +17,6 @@

/*istanbul ignore next*/(0, _index3.default)("ArrayExpression", {
(0, _index3.default)("ArrayExpression", {
fields: {
elements: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeOrValueType)("null", "Expression", "SpreadElement"))),
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeOrValueType)("null", "Expression", "SpreadElement"))),
default: []

@@ -31,12 +29,12 @@ }

/*istanbul ignore next*/(0, _index3.default)("AssignmentExpression", {
(0, _index3.default)("AssignmentExpression", {
fields: {
operator: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("string")
validate: (0, _index2.assertValueType)("string")
},
left: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("LVal")
validate: (0, _index2.assertNodeType)("LVal")
},
right: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -49,13 +47,13 @@ },

/*istanbul ignore next*/(0, _index3.default)("BinaryExpression", {
(0, _index3.default)("BinaryExpression", {
builder: ["operator", "left", "right"],
fields: {
operator: {
validate: /*istanbul ignore next*/_index2.assertOneOf.apply( /*istanbul ignore next*/undefined, /*istanbul ignore next*/_constants.BINARY_OPERATORS)
validate: _index2.assertOneOf.apply(undefined, _constants.BINARY_OPERATORS)
},
left: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
right: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -67,7 +65,7 @@ },

/*istanbul ignore next*/(0, _index3.default)("Directive", {
(0, _index3.default)("Directive", {
visitor: ["value"],
fields: {
value: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("DirectiveLiteral")
validate: (0, _index2.assertNodeType)("DirectiveLiteral")
}

@@ -77,7 +75,7 @@ }

/*istanbul ignore next*/(0, _index3.default)("DirectiveLiteral", {
(0, _index3.default)("DirectiveLiteral", {
builder: ["value"],
fields: {
value: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("string")
validate: (0, _index2.assertValueType)("string")
}

@@ -87,3 +85,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("BlockStatement", {
(0, _index3.default)("BlockStatement", {
builder: ["body", "directives"],

@@ -93,7 +91,7 @@ visitor: ["directives", "body"],

directives: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Directive"))),
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Directive"))),
default: []
},
body: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Statement")))
}

@@ -104,7 +102,7 @@ },

/*istanbul ignore next*/(0, _index3.default)("BreakStatement", {
(0, _index3.default)("BreakStatement", {
visitor: ["label"],
fields: {
label: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Identifier"),
validate: (0, _index2.assertNodeType)("Identifier"),
optional: true

@@ -116,10 +114,10 @@ }

/*istanbul ignore next*/(0, _index3.default)("CallExpression", {
(0, _index3.default)("CallExpression", {
visitor: ["callee", "arguments"],
fields: {
callee: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
arguments: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression", "SpreadElement")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Expression", "SpreadElement")))
}

@@ -130,10 +128,10 @@ },

/*istanbul ignore next*/(0, _index3.default)("CatchClause", {
(0, _index3.default)("CatchClause", {
visitor: ["param", "body"],
fields: {
param: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Identifier")
validate: (0, _index2.assertNodeType)("Identifier")
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
validate: (0, _index2.assertNodeType)("BlockStatement")
}

@@ -144,13 +142,13 @@ },

/*istanbul ignore next*/(0, _index3.default)("ConditionalExpression", {
(0, _index3.default)("ConditionalExpression", {
visitor: ["test", "consequent", "alternate"],
fields: {
test: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
consequent: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
alternate: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -161,7 +159,7 @@ },

/*istanbul ignore next*/(0, _index3.default)("ContinueStatement", {
(0, _index3.default)("ContinueStatement", {
visitor: ["label"],
fields: {
label: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Identifier"),
validate: (0, _index2.assertNodeType)("Identifier"),
optional: true

@@ -173,14 +171,14 @@ }

/*istanbul ignore next*/(0, _index3.default)("DebuggerStatement", {
(0, _index3.default)("DebuggerStatement", {
aliases: ["Statement"]
});
/*istanbul ignore next*/(0, _index3.default)("DoWhileStatement", {
(0, _index3.default)("DoWhileStatement", {
visitor: ["test", "body"],
fields: {
test: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")
validate: (0, _index2.assertNodeType)("Statement")
}

@@ -191,11 +189,11 @@ },

/*istanbul ignore next*/(0, _index3.default)("EmptyStatement", {
(0, _index3.default)("EmptyStatement", {
aliases: ["Statement"]
});
/*istanbul ignore next*/(0, _index3.default)("ExpressionStatement", {
(0, _index3.default)("ExpressionStatement", {
visitor: ["expression"],
fields: {
expression: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -206,3 +204,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("File", {
(0, _index3.default)("File", {
builder: ["program", "comments", "tokens"],

@@ -212,3 +210,3 @@ visitor: ["program"],

program: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Program")
validate: (0, _index2.assertNodeType)("Program")
}

@@ -218,3 +216,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("ForInStatement", {
(0, _index3.default)("ForInStatement", {
visitor: ["left", "right", "body"],

@@ -224,9 +222,9 @@ aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],

left: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("VariableDeclaration", "LVal")
validate: (0, _index2.assertNodeType)("VariableDeclaration", "LVal")
},
right: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")
validate: (0, _index2.assertNodeType)("Statement")
}

@@ -236,3 +234,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("ForStatement", {
(0, _index3.default)("ForStatement", {
visitor: ["init", "test", "update", "body"],

@@ -242,15 +240,15 @@ aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],

init: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("VariableDeclaration", "Expression"),
validate: (0, _index2.assertNodeType)("VariableDeclaration", "Expression"),
optional: true
},
test: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression"),
validate: (0, _index2.assertNodeType)("Expression"),
optional: true
},
update: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression"),
validate: (0, _index2.assertNodeType)("Expression"),
optional: true
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")
validate: (0, _index2.assertNodeType)("Statement")
}

@@ -260,3 +258,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("FunctionDeclaration", {
(0, _index3.default)("FunctionDeclaration", {
builder: ["id", "params", "body", "generator", "async"],

@@ -266,17 +264,17 @@ visitor: ["id", "params", "body", "returnType", "typeParameters"],

id: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Identifier")
validate: (0, _index2.assertNodeType)("Identifier")
},
params: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("LVal")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("LVal")))
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
validate: (0, _index2.assertNodeType)("BlockStatement")
},
generator: {
default: false,
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
},
async: {
default: false,
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
}

@@ -287,3 +285,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("FunctionExpression", {
(0, _index3.default)("FunctionExpression", {
inherits: "FunctionDeclaration",

@@ -293,18 +291,18 @@ aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],

id: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Identifier"),
validate: (0, _index2.assertNodeType)("Identifier"),
optional: true
},
params: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("LVal")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("LVal")))
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
validate: (0, _index2.assertNodeType)("BlockStatement")
},
generator: {
default: false,
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
},
async: {
default: false,
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
}

@@ -314,3 +312,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("Identifier", {
(0, _index3.default)("Identifier", {
builder: ["name"],

@@ -320,3 +318,3 @@ visitor: ["typeAnnotation"],

fields: {
name: { /*istanbul ignore next*/
name: {
validate: function validate(node, key, val) {

@@ -329,3 +327,3 @@ if (!t.isValidIdentifier(val)) {

decorators: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Decorator")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Decorator")))
}

@@ -335,3 +333,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("IfStatement", {
(0, _index3.default)("IfStatement", {
visitor: ["test", "consequent", "alternate"],

@@ -341,10 +339,10 @@ aliases: ["Statement", "Conditional"],

test: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
consequent: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")
validate: (0, _index2.assertNodeType)("Statement")
},
alternate: {
optional: true,
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")
validate: (0, _index2.assertNodeType)("Statement")
}

@@ -354,3 +352,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("LabeledStatement", {
(0, _index3.default)("LabeledStatement", {
visitor: ["label", "body"],

@@ -360,6 +358,6 @@ aliases: ["Statement"],

label: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Identifier")
validate: (0, _index2.assertNodeType)("Identifier")
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")
validate: (0, _index2.assertNodeType)("Statement")
}

@@ -369,7 +367,7 @@ }

/*istanbul ignore next*/(0, _index3.default)("StringLiteral", {
(0, _index3.default)("StringLiteral", {
builder: ["value"],
fields: {
value: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("string")
validate: (0, _index2.assertValueType)("string")
}

@@ -380,3 +378,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("NumericLiteral", {
(0, _index3.default)("NumericLiteral", {
builder: ["value"],

@@ -386,3 +384,3 @@ deprecatedAlias: "NumberLiteral",

value: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("number")
validate: (0, _index2.assertValueType)("number")
}

@@ -393,11 +391,11 @@ },

/*istanbul ignore next*/(0, _index3.default)("NullLiteral", {
(0, _index3.default)("NullLiteral", {
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
/*istanbul ignore next*/(0, _index3.default)("BooleanLiteral", {
(0, _index3.default)("BooleanLiteral", {
builder: ["value"],
fields: {
value: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
}

@@ -408,3 +406,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("RegExpLiteral", {
(0, _index3.default)("RegExpLiteral", {
builder: ["pattern", "flags"],

@@ -415,6 +413,6 @@ deprecatedAlias: "RegexLiteral",

pattern: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("string")
validate: (0, _index2.assertValueType)("string")
},
flags: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("string"),
validate: (0, _index2.assertValueType)("string"),
default: ""

@@ -425,3 +423,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("LogicalExpression", {
(0, _index3.default)("LogicalExpression", {
builder: ["operator", "left", "right"],

@@ -432,9 +430,9 @@ visitor: ["left", "right"],

operator: {
validate: /*istanbul ignore next*/_index2.assertOneOf.apply( /*istanbul ignore next*/undefined, /*istanbul ignore next*/_constants.LOGICAL_OPERATORS)
validate: _index2.assertOneOf.apply(undefined, _constants.LOGICAL_OPERATORS)
},
left: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
right: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -444,3 +442,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("MemberExpression", {
(0, _index3.default)("MemberExpression", {
builder: ["object", "property", "computed"],

@@ -451,8 +449,8 @@ visitor: ["object", "property"],

object: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
property: { /*istanbul ignore next*/
property: {
validate: function validate(node, key, val) {
var expectedType = node.computed ? "Expression" : "Identifier";
/*istanbul ignore next*/(0, _index2.assertNodeType)(expectedType)(node, key, val);
(0, _index2.assertNodeType)(expectedType)(node, key, val);
}

@@ -466,3 +464,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("NewExpression", {
(0, _index3.default)("NewExpression", {
visitor: ["callee", "arguments"],

@@ -472,6 +470,6 @@ aliases: ["Expression"],

callee: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
arguments: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression", "SpreadElement")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Expression", "SpreadElement")))
}

@@ -481,3 +479,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("Program", {
(0, _index3.default)("Program", {
visitor: ["directives", "body"],

@@ -487,7 +485,7 @@ builder: ["body", "directives"],

directives: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Directive"))),
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Directive"))),
default: []
},
body: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Statement")))
}

@@ -498,3 +496,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("ObjectExpression", {
(0, _index3.default)("ObjectExpression", {
visitor: ["properties"],

@@ -504,3 +502,3 @@ aliases: ["Expression"],

properties: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("ObjectMethod", "ObjectProperty", "SpreadProperty")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("ObjectMethod", "ObjectProperty", "SpreadProperty")))
}

@@ -510,32 +508,32 @@ }

/*istanbul ignore next*/(0, _index3.default)("ObjectMethod", {
(0, _index3.default)("ObjectMethod", {
builder: ["kind", "key", "params", "body", "computed"],
fields: {
kind: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("string"), /*istanbul ignore next*/(0, _index2.assertOneOf)("method", "get", "set")),
validate: (0, _index2.chain)((0, _index2.assertValueType)("string"), (0, _index2.assertOneOf)("method", "get", "set")),
default: "method"
},
computed: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean"),
validate: (0, _index2.assertValueType)("boolean"),
default: false
},
key: { /*istanbul ignore next*/
key: {
validate: function validate(node, key, val) {
var expectedTypes = node.computed ? ["Expression"] : ["Identifier", "StringLiteral", "NumericLiteral"];
/*istanbul ignore next*/_index2.assertNodeType.apply( /*istanbul ignore next*/undefined, expectedTypes)(node, key, val);
_index2.assertNodeType.apply(undefined, expectedTypes)(node, key, val);
}
},
decorators: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Decorator")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Decorator")))
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
validate: (0, _index2.assertNodeType)("BlockStatement")
},
generator: {
default: false,
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
},
async: {
default: false,
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean")
validate: (0, _index2.assertValueType)("boolean")
}

@@ -547,24 +545,24 @@ },

/*istanbul ignore next*/(0, _index3.default)("ObjectProperty", {
(0, _index3.default)("ObjectProperty", {
builder: ["key", "value", "computed", "shorthand", "decorators"],
fields: {
computed: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean"),
validate: (0, _index2.assertValueType)("boolean"),
default: false
},
key: { /*istanbul ignore next*/
key: {
validate: function validate(node, key, val) {
var expectedTypes = node.computed ? ["Expression"] : ["Identifier", "StringLiteral", "NumericLiteral"];
/*istanbul ignore next*/_index2.assertNodeType.apply( /*istanbul ignore next*/undefined, expectedTypes)(node, key, val);
_index2.assertNodeType.apply(undefined, expectedTypes)(node, key, val);
}
},
value: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
shorthand: {
validate: /*istanbul ignore next*/(0, _index2.assertValueType)("boolean"),
validate: (0, _index2.assertValueType)("boolean"),
default: false
},
decorators: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Decorator"))),
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Decorator"))),
optional: true

@@ -577,3 +575,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("RestElement", {
(0, _index3.default)("RestElement", {
visitor: ["argument", "typeAnnotation"],

@@ -583,6 +581,6 @@ aliases: ["LVal"],

argument: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("LVal")
validate: (0, _index2.assertNodeType)("LVal")
},
decorators: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Decorator")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Decorator")))
}

@@ -592,3 +590,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("ReturnStatement", {
(0, _index3.default)("ReturnStatement", {
visitor: ["argument"],

@@ -598,3 +596,3 @@ aliases: ["Statement", "Terminatorless", "CompletionStatement"],

argument: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression"),
validate: (0, _index2.assertNodeType)("Expression"),
optional: true

@@ -605,7 +603,7 @@ }

/*istanbul ignore next*/(0, _index3.default)("SequenceExpression", {
(0, _index3.default)("SequenceExpression", {
visitor: ["expressions"],
fields: {
expressions: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Expression")))
}

@@ -616,11 +614,11 @@ },

/*istanbul ignore next*/(0, _index3.default)("SwitchCase", {
(0, _index3.default)("SwitchCase", {
visitor: ["test", "consequent"],
fields: {
test: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression"),
validate: (0, _index2.assertNodeType)("Expression"),
optional: true
},
consequent: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("Statement")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("Statement")))
}

@@ -630,3 +628,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("SwitchStatement", {
(0, _index3.default)("SwitchStatement", {
visitor: ["discriminant", "cases"],

@@ -636,6 +634,6 @@ aliases: ["Statement", "BlockParent", "Scopable"],

discriminant: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
cases: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("SwitchCase")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("SwitchCase")))
}

@@ -645,7 +643,7 @@ }

/*istanbul ignore next*/(0, _index3.default)("ThisExpression", {
(0, _index3.default)("ThisExpression", {
aliases: ["Expression"]
});
/*istanbul ignore next*/(0, _index3.default)("ThrowStatement", {
(0, _index3.default)("ThrowStatement", {
visitor: ["argument"],

@@ -655,3 +653,3 @@ aliases: ["Statement", "Terminatorless", "CompletionStatement"],

argument: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -662,3 +660,3 @@ }

// todo: at least handler or finalizer should be set to be valid
/*istanbul ignore next*/(0, _index3.default)("TryStatement", {
(0, _index3.default)("TryStatement", {
visitor: ["block", "handler", "finalizer"],

@@ -668,11 +666,11 @@ aliases: ["Statement"],

body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
validate: (0, _index2.assertNodeType)("BlockStatement")
},
handler: {
optional: true,
handler: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
handler: (0, _index2.assertNodeType)("BlockStatement")
},
finalizer: {
optional: true,
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement")
validate: (0, _index2.assertNodeType)("BlockStatement")
}

@@ -682,3 +680,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("UnaryExpression", {
(0, _index3.default)("UnaryExpression", {
builder: ["operator", "argument", "prefix"],

@@ -690,6 +688,6 @@ fields: {

argument: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
operator: {
validate: /*istanbul ignore next*/_index2.assertOneOf.apply( /*istanbul ignore next*/undefined, /*istanbul ignore next*/_constants.UNARY_OPERATORS)
validate: _index2.assertOneOf.apply(undefined, _constants.UNARY_OPERATORS)
}

@@ -701,3 +699,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("UpdateExpression", {
(0, _index3.default)("UpdateExpression", {
builder: ["operator", "argument", "prefix"],

@@ -709,6 +707,6 @@ fields: {

argument: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
operator: {
validate: /*istanbul ignore next*/_index2.assertOneOf.apply( /*istanbul ignore next*/undefined, /*istanbul ignore next*/_constants.UPDATE_OPERATORS)
validate: _index2.assertOneOf.apply(undefined, _constants.UPDATE_OPERATORS)
}

@@ -720,3 +718,3 @@ },

/*istanbul ignore next*/(0, _index3.default)("VariableDeclaration", {
(0, _index3.default)("VariableDeclaration", {
builder: ["kind", "declarations"],

@@ -727,6 +725,6 @@ visitor: ["declarations"],

kind: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("string"), /*istanbul ignore next*/(0, _index2.assertOneOf)("var", "let", "const"))
validate: (0, _index2.chain)((0, _index2.assertValueType)("string"), (0, _index2.assertOneOf)("var", "let", "const"))
},
declarations: {
validate: /*istanbul ignore next*/(0, _index2.chain)( /*istanbul ignore next*/(0, _index2.assertValueType)("array"), /*istanbul ignore next*/(0, _index2.assertEach)( /*istanbul ignore next*/(0, _index2.assertNodeType)("VariableDeclarator")))
validate: (0, _index2.chain)((0, _index2.assertValueType)("array"), (0, _index2.assertEach)((0, _index2.assertNodeType)("VariableDeclarator")))
}

@@ -736,11 +734,11 @@ }

/*istanbul ignore next*/(0, _index3.default)("VariableDeclarator", {
(0, _index3.default)("VariableDeclarator", {
visitor: ["id", "init"],
fields: {
id: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("LVal")
validate: (0, _index2.assertNodeType)("LVal")
},
init: {
optional: true,
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
}

@@ -750,3 +748,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("WhileStatement", {
(0, _index3.default)("WhileStatement", {
visitor: ["test", "body"],

@@ -756,6 +754,6 @@ aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],

test: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression")
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement", "Statement")
validate: (0, _index2.assertNodeType)("BlockStatement", "Statement")
}

@@ -765,3 +763,3 @@ }

/*istanbul ignore next*/(0, _index3.default)("WithStatement", {
(0, _index3.default)("WithStatement", {
visitor: ["object", "body"],

@@ -771,8 +769,8 @@ aliases: ["Statement"],

object: {
object: /*istanbul ignore next*/(0, _index2.assertNodeType)("Expression")
object: (0, _index2.assertNodeType)("Expression")
},
body: {
validate: /*istanbul ignore next*/(0, _index2.assertNodeType)("BlockStatement", "Statement")
validate: (0, _index2.assertNodeType)("BlockStatement", "Statement")
}
}
});

@@ -1,6 +0,5 @@

/*istanbul ignore next*/"use strict";
"use strict";
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var _index2 = _interopRequireDefault(_index);

@@ -10,3 +9,3 @@

/*istanbul ignore next*/(0, _index2.default)("AssignmentPattern", {
(0, _index2.default)("AssignmentPattern", {
visitor: ["left", "right"],

@@ -16,9 +15,9 @@ aliases: ["Pattern", "LVal"],

left: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
},
right: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
},
decorators: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Decorator")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Decorator")))
}

@@ -28,3 +27,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ArrayPattern", {
(0, _index2.default)("ArrayPattern", {
visitor: ["elements", "typeAnnotation"],

@@ -34,6 +33,6 @@ aliases: ["Pattern", "LVal"],

elements: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Expression")))
},
decorators: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Decorator")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Decorator")))
}

@@ -43,3 +42,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ArrowFunctionExpression", {
(0, _index2.default)("ArrowFunctionExpression", {
builder: ["params", "body", "async"],

@@ -50,9 +49,9 @@ visitor: ["params", "body", "returnType"],

params: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("LVal")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("LVal")))
},
body: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("BlockStatement", "Expression")
validate: (0, _index.assertNodeType)("BlockStatement", "Expression")
},
async: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean"),
validate: (0, _index.assertValueType)("boolean"),
default: false

@@ -63,7 +62,7 @@ }

/*istanbul ignore next*/(0, _index2.default)("ClassBody", {
(0, _index2.default)("ClassBody", {
visitor: ["body"],
fields: {
body: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("ClassMethod", "ClassProperty")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("ClassMethod", "ClassProperty")))
}

@@ -73,3 +72,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ClassDeclaration", {
(0, _index2.default)("ClassDeclaration", {
builder: ["id", "superClass", "body", "decorators"],

@@ -80,13 +79,13 @@ visitor: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators"],

id: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
},
body: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("ClassBody")
validate: (0, _index.assertNodeType)("ClassBody")
},
superClass: {
optional: true,
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
},
decorators: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Decorator")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Decorator")))
}

@@ -96,3 +95,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ClassExpression", {
(0, _index2.default)("ClassExpression", {
inherits: "ClassDeclaration",

@@ -103,13 +102,13 @@ aliases: ["Scopable", "Class", "Expression", "Pureish"],

optional: true,
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
},
body: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("ClassBody")
validate: (0, _index.assertNodeType)("ClassBody")
},
superClass: {
optional: true,
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
},
decorators: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Decorator")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Decorator")))
}

@@ -119,3 +118,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ExportAllDeclaration", {
(0, _index2.default)("ExportAllDeclaration", {
visitor: ["source"],

@@ -125,3 +124,3 @@ aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],

source: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("StringLiteral")
validate: (0, _index.assertNodeType)("StringLiteral")
}

@@ -131,3 +130,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ExportDefaultDeclaration", {
(0, _index2.default)("ExportDefaultDeclaration", {
visitor: ["declaration"],

@@ -137,3 +136,3 @@ aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],

declaration: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("FunctionDeclaration", "ClassDeclaration", "Expression")
validate: (0, _index.assertNodeType)("FunctionDeclaration", "ClassDeclaration", "Expression")
}

@@ -143,3 +142,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ExportNamedDeclaration", {
(0, _index2.default)("ExportNamedDeclaration", {
visitor: ["declaration", "specifiers", "source"],

@@ -149,10 +148,10 @@ aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],

declaration: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Declaration"),
validate: (0, _index.assertNodeType)("Declaration"),
optional: true
},
specifiers: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("ExportSpecifier")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("ExportSpecifier")))
},
source: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("StringLiteral"),
validate: (0, _index.assertNodeType)("StringLiteral"),
optional: true

@@ -163,3 +162,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ExportSpecifier", {
(0, _index2.default)("ExportSpecifier", {
visitor: ["local", "exported"],

@@ -169,6 +168,6 @@ aliases: ["ModuleSpecifier"],

local: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
},
exported: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
}

@@ -178,3 +177,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ForOfStatement", {
(0, _index2.default)("ForOfStatement", {
visitor: ["left", "right", "body"],

@@ -184,9 +183,9 @@ aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],

left: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("VariableDeclaration", "LVal")
validate: (0, _index.assertNodeType)("VariableDeclaration", "LVal")
},
right: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
},
body: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Statement")
validate: (0, _index.assertNodeType)("Statement")
}

@@ -196,3 +195,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ImportDeclaration", {
(0, _index2.default)("ImportDeclaration", {
visitor: ["specifiers", "source"],

@@ -202,6 +201,6 @@ aliases: ["Statement", "Declaration", "ModuleDeclaration"],

specifiers: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier")))
},
source: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("StringLiteral")
validate: (0, _index.assertNodeType)("StringLiteral")
}

@@ -211,3 +210,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ImportDefaultSpecifier", {
(0, _index2.default)("ImportDefaultSpecifier", {
visitor: ["local"],

@@ -217,3 +216,3 @@ aliases: ["ModuleSpecifier"],

local: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
}

@@ -223,3 +222,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ImportNamespaceSpecifier", {
(0, _index2.default)("ImportNamespaceSpecifier", {
visitor: ["local"],

@@ -229,3 +228,3 @@ aliases: ["ModuleSpecifier"],

local: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
}

@@ -235,3 +234,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ImportSpecifier", {
(0, _index2.default)("ImportSpecifier", {
visitor: ["local", "imported"],

@@ -241,6 +240,6 @@ aliases: ["ModuleSpecifier"],

local: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
},
imported: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
}

@@ -250,3 +249,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("MetaProperty", {
(0, _index2.default)("MetaProperty", {
visitor: ["meta", "property"],

@@ -257,6 +256,6 @@ aliases: ["Expression"],

meta: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("string")
validate: (0, _index.assertValueType)("string")
},
property: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("string")
validate: (0, _index.assertValueType)("string")
}

@@ -266,3 +265,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ClassMethod", {
(0, _index2.default)("ClassMethod", {
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],

@@ -273,3 +272,3 @@ builder: ["kind", "key", "params", "body", "computed", "static"],

kind: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("string"), /*istanbul ignore next*/(0, _index.assertOneOf)("get", "set", "method", "constructor")),
validate: (0, _index.chain)((0, _index.assertValueType)("string"), (0, _index.assertOneOf)("get", "set", "method", "constructor")),
default: "method"

@@ -279,27 +278,27 @@ },

default: false,
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean")
validate: (0, _index.assertValueType)("boolean")
},
static: {
default: false,
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean")
validate: (0, _index.assertValueType)("boolean")
},
key: { /*istanbul ignore next*/
key: {
validate: function validate(node, key, val) {
var expectedTypes = node.computed ? ["Expression"] : ["Identifier", "StringLiteral", "NumericLiteral"];
/*istanbul ignore next*/_index.assertNodeType.apply( /*istanbul ignore next*/undefined, expectedTypes)(node, key, val);
_index.assertNodeType.apply(undefined, expectedTypes)(node, key, val);
}
},
params: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("LVal")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("LVal")))
},
body: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("BlockStatement")
validate: (0, _index.assertNodeType)("BlockStatement")
},
generator: {
default: false,
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean")
validate: (0, _index.assertValueType)("boolean")
},
async: {
default: false,
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean")
validate: (0, _index.assertValueType)("boolean")
}

@@ -309,3 +308,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ObjectPattern", {
(0, _index2.default)("ObjectPattern", {
visitor: ["properties", "typeAnnotation"],

@@ -315,6 +314,6 @@ aliases: ["Pattern", "LVal"],

properties: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("RestProperty", "Property")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("RestProperty", "Property")))
},
decorators: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Decorator")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Decorator")))
}

@@ -324,3 +323,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("SpreadElement", {
(0, _index2.default)("SpreadElement", {
visitor: ["argument"],

@@ -330,3 +329,3 @@ aliases: ["UnaryLike"],

argument: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}

@@ -336,7 +335,7 @@ }

/*istanbul ignore next*/(0, _index2.default)("Super", {
(0, _index2.default)("Super", {
aliases: ["Expression"]
});
/*istanbul ignore next*/(0, _index2.default)("TaggedTemplateExpression", {
(0, _index2.default)("TaggedTemplateExpression", {
visitor: ["tag", "quasi"],

@@ -346,6 +345,6 @@ aliases: ["Expression"],

tag: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
},
quasi: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("TemplateLiteral")
validate: (0, _index.assertNodeType)("TemplateLiteral")
}

@@ -355,3 +354,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("TemplateElement", {
(0, _index2.default)("TemplateElement", {
builder: ["value", "tail"],

@@ -363,3 +362,3 @@ fields: {

tail: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean"),
validate: (0, _index.assertValueType)("boolean"),
default: false

@@ -370,3 +369,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("TemplateLiteral", {
(0, _index2.default)("TemplateLiteral", {
visitor: ["quasis", "expressions"],

@@ -376,6 +375,6 @@ aliases: ["Expression", "Literal"],

quasis: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("TemplateElement")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("TemplateElement")))
},
expressions: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Expression")))
}

@@ -385,3 +384,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("YieldExpression", {
(0, _index2.default)("YieldExpression", {
builder: ["argument", "delegate"],

@@ -392,3 +391,3 @@ visitor: ["argument"],

delegate: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean"),
validate: (0, _index.assertValueType)("boolean"),
default: false

@@ -398,5 +397,5 @@ },

optional: true,
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}
}
});

@@ -1,6 +0,5 @@

/*istanbul ignore next*/"use strict";
"use strict";
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var _index2 = _interopRequireDefault(_index);

@@ -10,3 +9,3 @@

/*istanbul ignore next*/(0, _index2.default)("AwaitExpression", {
(0, _index2.default)("AwaitExpression", {
builder: ["argument"],

@@ -17,3 +16,3 @@ visitor: ["argument"],

argument: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}

@@ -23,3 +22,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("BindExpression", {
(0, _index2.default)("BindExpression", {
visitor: ["object", "callee"],

@@ -32,7 +31,7 @@ aliases: ["Expression"],

/*istanbul ignore next*/(0, _index2.default)("Decorator", {
(0, _index2.default)("Decorator", {
visitor: ["expression"],
fields: {
expression: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}

@@ -42,3 +41,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("DoExpression", {
(0, _index2.default)("DoExpression", {
visitor: ["body"],

@@ -48,3 +47,3 @@ aliases: ["Expression"],

body: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("BlockStatement")
validate: (0, _index.assertNodeType)("BlockStatement")
}

@@ -54,3 +53,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ExportDefaultSpecifier", {
(0, _index2.default)("ExportDefaultSpecifier", {
visitor: ["exported"],

@@ -60,3 +59,3 @@ aliases: ["ModuleSpecifier"],

exported: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
}

@@ -66,3 +65,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("ExportNamespaceSpecifier", {
(0, _index2.default)("ExportNamespaceSpecifier", {
visitor: ["exported"],

@@ -72,3 +71,3 @@ aliases: ["ModuleSpecifier"],

exported: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Identifier")
validate: (0, _index.assertNodeType)("Identifier")
}

@@ -78,3 +77,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("RestProperty", {
(0, _index2.default)("RestProperty", {
visitor: ["argument"],

@@ -84,3 +83,3 @@ aliases: ["UnaryLike"],

argument: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("LVal")
validate: (0, _index.assertNodeType)("LVal")
}

@@ -90,3 +89,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("SpreadProperty", {
(0, _index2.default)("SpreadProperty", {
visitor: ["argument"],

@@ -96,5 +95,5 @@ aliases: ["UnaryLike"],

argument: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}
}
});

@@ -1,6 +0,5 @@

/*istanbul ignore next*/"use strict";
"use strict";
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var _index2 = _interopRequireDefault(_index);

@@ -10,3 +9,3 @@

/*istanbul ignore next*/(0, _index2.default)("AnyTypeAnnotation", {
(0, _index2.default)("AnyTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -18,3 +17,3 @@ fields: {

/*istanbul ignore next*/(0, _index2.default)("ArrayTypeAnnotation", {
(0, _index2.default)("ArrayTypeAnnotation", {
visitor: ["elementType"],

@@ -27,3 +26,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("BooleanTypeAnnotation", {
(0, _index2.default)("BooleanTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -35,3 +34,3 @@ fields: {

/*istanbul ignore next*/(0, _index2.default)("BooleanLiteralTypeAnnotation", {
(0, _index2.default)("BooleanLiteralTypeAnnotation", {
aliases: ["Flow"],

@@ -41,3 +40,3 @@ fields: {}

/*istanbul ignore next*/(0, _index2.default)("NullLiteralTypeAnnotation", {
(0, _index2.default)("NullLiteralTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -47,3 +46,3 @@ fields: {}

/*istanbul ignore next*/(0, _index2.default)("ClassImplements", {
(0, _index2.default)("ClassImplements", {
visitor: ["id", "typeParameters"],

@@ -56,3 +55,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("ClassProperty", {
(0, _index2.default)("ClassProperty", {
visitor: ["key", "value", "typeAnnotation", "decorators"],

@@ -65,3 +64,3 @@ aliases: ["Flow", "Property"],

/*istanbul ignore next*/(0, _index2.default)("DeclareClass", {
(0, _index2.default)("DeclareClass", {
visitor: ["id", "typeParameters", "extends", "body"],

@@ -74,3 +73,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("DeclareFunction", {
(0, _index2.default)("DeclareFunction", {
visitor: ["id"],

@@ -83,3 +82,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("DeclareInterface", {
(0, _index2.default)("DeclareInterface", {
visitor: ["id", "typeParameters", "extends", "body"],

@@ -92,3 +91,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("DeclareModule", {
(0, _index2.default)("DeclareModule", {
visitor: ["id", "body"],

@@ -101,3 +100,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("DeclareTypeAlias", {
(0, _index2.default)("DeclareTypeAlias", {
visitor: ["id", "typeParameters", "right"],

@@ -110,3 +109,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("DeclareVariable", {
(0, _index2.default)("DeclareVariable", {
visitor: ["id"],

@@ -119,7 +118,7 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("ExistentialTypeParam", {
(0, _index2.default)("ExistentialTypeParam", {
aliases: ["Flow"]
});
/*istanbul ignore next*/(0, _index2.default)("FunctionTypeAnnotation", {
(0, _index2.default)("FunctionTypeAnnotation", {
visitor: ["typeParameters", "params", "rest", "returnType"],

@@ -132,3 +131,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("FunctionTypeParam", {
(0, _index2.default)("FunctionTypeParam", {
visitor: ["name", "typeAnnotation"],

@@ -141,3 +140,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("GenericTypeAnnotation", {
(0, _index2.default)("GenericTypeAnnotation", {
visitor: ["id", "typeParameters"],

@@ -150,3 +149,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("InterfaceExtends", {
(0, _index2.default)("InterfaceExtends", {
visitor: ["id", "typeParameters"],

@@ -159,3 +158,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("InterfaceDeclaration", {
(0, _index2.default)("InterfaceDeclaration", {
visitor: ["id", "typeParameters", "extends", "body"],

@@ -168,3 +167,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("IntersectionTypeAnnotation", {
(0, _index2.default)("IntersectionTypeAnnotation", {
visitor: ["types"],

@@ -177,7 +176,7 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("MixedTypeAnnotation", {
(0, _index2.default)("MixedTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"]
});
/*istanbul ignore next*/(0, _index2.default)("NullableTypeAnnotation", {
(0, _index2.default)("NullableTypeAnnotation", {
visitor: ["typeAnnotation"],

@@ -190,3 +189,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("NumericLiteralTypeAnnotation", {
(0, _index2.default)("NumericLiteralTypeAnnotation", {
aliases: ["Flow"],

@@ -198,3 +197,3 @@ fields: {

/*istanbul ignore next*/(0, _index2.default)("NumberTypeAnnotation", {
(0, _index2.default)("NumberTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -206,3 +205,3 @@ fields: {

/*istanbul ignore next*/(0, _index2.default)("StringLiteralTypeAnnotation", {
(0, _index2.default)("StringLiteralTypeAnnotation", {
aliases: ["Flow"],

@@ -214,3 +213,3 @@ fields: {

/*istanbul ignore next*/(0, _index2.default)("StringTypeAnnotation", {
(0, _index2.default)("StringTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -222,3 +221,3 @@ fields: {

/*istanbul ignore next*/(0, _index2.default)("ThisTypeAnnotation", {
(0, _index2.default)("ThisTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -228,3 +227,3 @@ fields: {}

/*istanbul ignore next*/(0, _index2.default)("TupleTypeAnnotation", {
(0, _index2.default)("TupleTypeAnnotation", {
visitor: ["types"],

@@ -237,3 +236,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("TypeofTypeAnnotation", {
(0, _index2.default)("TypeofTypeAnnotation", {
visitor: ["argument"],

@@ -246,3 +245,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("TypeAlias", {
(0, _index2.default)("TypeAlias", {
visitor: ["id", "typeParameters", "right"],

@@ -255,3 +254,3 @@ aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],

/*istanbul ignore next*/(0, _index2.default)("TypeAnnotation", {
(0, _index2.default)("TypeAnnotation", {
visitor: ["typeAnnotation"],

@@ -264,3 +263,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("TypeCastExpression", {
(0, _index2.default)("TypeCastExpression", {
visitor: ["expression", "typeAnnotation"],

@@ -273,3 +272,3 @@ aliases: ["Flow", "ExpressionWrapper", "Expression"],

/*istanbul ignore next*/(0, _index2.default)("TypeParameterDeclaration", {
(0, _index2.default)("TypeParameterDeclaration", {
visitor: ["params"],

@@ -282,3 +281,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("TypeParameterInstantiation", {
(0, _index2.default)("TypeParameterInstantiation", {
visitor: ["params"],

@@ -291,3 +290,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("ObjectTypeAnnotation", {
(0, _index2.default)("ObjectTypeAnnotation", {
visitor: ["properties", "indexers", "callProperties"],

@@ -300,3 +299,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("ObjectTypeCallProperty", {
(0, _index2.default)("ObjectTypeCallProperty", {
visitor: ["value"],

@@ -309,3 +308,3 @@ aliases: ["Flow", "UserWhitespacable"],

/*istanbul ignore next*/(0, _index2.default)("ObjectTypeIndexer", {
(0, _index2.default)("ObjectTypeIndexer", {
visitor: ["id", "key", "value"],

@@ -318,3 +317,3 @@ aliases: ["Flow", "UserWhitespacable"],

/*istanbul ignore next*/(0, _index2.default)("ObjectTypeProperty", {
(0, _index2.default)("ObjectTypeProperty", {
visitor: ["key", "value"],

@@ -327,3 +326,3 @@ aliases: ["Flow", "UserWhitespacable"],

/*istanbul ignore next*/(0, _index2.default)("QualifiedTypeIdentifier", {
(0, _index2.default)("QualifiedTypeIdentifier", {
visitor: ["id", "qualification"],

@@ -336,3 +335,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("UnionTypeAnnotation", {
(0, _index2.default)("UnionTypeAnnotation", {
visitor: ["types"],

@@ -345,3 +344,3 @@ aliases: ["Flow"],

/*istanbul ignore next*/(0, _index2.default)("VoidTypeAnnotation", {
(0, _index2.default)("VoidTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],

@@ -348,0 +347,0 @@ fields: {

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -19,15 +19,13 @@ exports.__esModule = true;

exports.assertEach = assertEach;
/*istanbul ignore next*/exports.assertOneOf = assertOneOf;
/*istanbul ignore next*/exports.assertNodeType = assertNodeType;
/*istanbul ignore next*/exports.assertNodeOrValueType = assertNodeOrValueType;
/*istanbul ignore next*/exports.assertValueType = assertValueType;
/*istanbul ignore next*/exports.chain = chain;
/*istanbul ignore next*/exports.default = defineType;
exports.assertOneOf = assertOneOf;
exports.assertNodeType = assertNodeType;
exports.assertNodeOrValueType = assertNodeOrValueType;
exports.assertValueType = assertValueType;
exports.chain = chain;
exports.default = defineType;
var /*istanbul ignore next*/_index = require("../index");
var _index = require("../index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -37,7 +35,7 @@

var VISITOR_KEYS = /*istanbul ignore next*/exports.VISITOR_KEYS = {};
var ALIAS_KEYS = /*istanbul ignore next*/exports.ALIAS_KEYS = {};
var NODE_FIELDS = /*istanbul ignore next*/exports.NODE_FIELDS = {};
var BUILDER_KEYS = /*istanbul ignore next*/exports.BUILDER_KEYS = {};
var DEPRECATED_KEYS = /*istanbul ignore next*/exports.DEPRECATED_KEYS = {};
var VISITOR_KEYS = exports.VISITOR_KEYS = {};
var ALIAS_KEYS = exports.ALIAS_KEYS = {};
var NODE_FIELDS = exports.NODE_FIELDS = {};
var BUILDER_KEYS = exports.BUILDER_KEYS = {};
var DEPRECATED_KEYS = exports.DEPRECATED_KEYS = {};

@@ -52,4 +50,3 @@ function getType(val) {

} else {
return (/*istanbul ignore next*/typeof val === "undefined" ? "undefined" : (0, _typeof3.default)(val)
);
return typeof val === "undefined" ? "undefined" : (0, _typeof3.default)(val);
}

@@ -63,3 +60,3 @@ }

for (var i = 0; i < val.length; i++) {
callback(node, /*istanbul ignore next*/key + "[" + i + "]", val[i]);
callback(node, key + "[" + i + "]", val[i]);
}

@@ -72,3 +69,2 @@ }

function assertOneOf() {
/*istanbul ignore next*/
for (var _len = arguments.length, vals = Array(_len), _key = 0; _key < _len; _key++) {

@@ -80,3 +76,3 @@ vals[_key] = arguments[_key];

if (vals.indexOf(val) < 0) {
throw new TypeError( /*istanbul ignore next*/"Property " + key + " expected value to be one of " + /*istanbul ignore next*/(0, _stringify2.default)(vals) + " but got " + /*istanbul ignore next*/(0, _stringify2.default)(val));
throw new TypeError("Property " + key + " expected value to be one of " + (0, _stringify2.default)(vals) + " but got " + (0, _stringify2.default)(val));
}

@@ -91,3 +87,2 @@ }

function assertNodeType() {
/*istanbul ignore next*/
for (var _len2 = arguments.length, types = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {

@@ -100,4 +95,3 @@ types[_key2] = arguments[_key2];

for ( /*istanbul ignore next*/var _iterator = types, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
/*istanbul ignore next*/
for (var _iterator = types, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
var _ref;

@@ -123,3 +117,3 @@

if (!valid) {
throw new TypeError( /*istanbul ignore next*/"Property " + key + " of " + node.type + " expected node to be of a type " + /*istanbul ignore next*/(0, _stringify2.default)(types) + " " + /*istanbul ignore next*/("but instead got " + /*istanbul ignore next*/(0, _stringify2.default)(val && val.type)));
throw new TypeError("Property " + key + " of " + node.type + " expected node to be of a type " + (0, _stringify2.default)(types) + " " + ("but instead got " + (0, _stringify2.default)(val && val.type)));
}

@@ -134,3 +128,2 @@ }

function assertNodeOrValueType() {
/*istanbul ignore next*/
for (var _len3 = arguments.length, types = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {

@@ -143,4 +136,3 @@ types[_key3] = arguments[_key3];

for ( /*istanbul ignore next*/var _iterator2 = types, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : (0, _getIterator3.default)(_iterator2);;) {
/*istanbul ignore next*/
for (var _iterator2 = types, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : (0, _getIterator3.default)(_iterator2);;) {
var _ref2;

@@ -166,3 +158,3 @@

if (!valid) {
throw new TypeError( /*istanbul ignore next*/"Property " + key + " of " + node.type + " expected node to be of a type " + /*istanbul ignore next*/(0, _stringify2.default)(types) + " " + /*istanbul ignore next*/("but instead got " + /*istanbul ignore next*/(0, _stringify2.default)(val && val.type)));
throw new TypeError("Property " + key + " of " + node.type + " expected node to be of a type " + (0, _stringify2.default)(types) + " " + ("but instead got " + (0, _stringify2.default)(val && val.type)));
}

@@ -181,3 +173,3 @@ }

if (!valid) {
throw new TypeError( /*istanbul ignore next*/"Property " + key + " expected type of " + type + " but got " + getType(val));
throw new TypeError("Property " + key + " expected type of " + type + " but got " + getType(val));
}

@@ -192,3 +184,2 @@ }

function chain() {
/*istanbul ignore next*/
for (var _len4 = arguments.length, fns = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {

@@ -199,4 +190,3 @@ fns[_key4] = arguments[_key4];

function validate() {
for ( /*istanbul ignore next*/var _iterator3 = fns, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : (0, _getIterator3.default)(_iterator3);;) {
/*istanbul ignore next*/
for (var _iterator3 = fns, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : (0, _getIterator3.default)(_iterator3);;) {
var _ref3;

@@ -215,3 +205,3 @@

/*istanbul ignore next*/fn.apply( /*istanbul ignore next*/undefined, /*istanbul ignore next*/arguments);
fn.apply(undefined, arguments);
}

@@ -224,3 +214,3 @@ }

function defineType(type) {
/*istanbul ignore next*/var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

@@ -239,4 +229,3 @@ var inherits = opts.inherits && store[opts.inherits] || {};

// ensure all field keys are represented in `fields`
for ( /*istanbul ignore next*/var _iterator4 = opts.visitor.concat(opts.builder), _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : (0, _getIterator3.default)(_iterator4);;) {
/*istanbul ignore next*/
for (var _iterator4 = opts.visitor.concat(opts.builder), _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : (0, _getIterator3.default)(_iterator4);;) {
var _ref4;

@@ -243,0 +232,0 @@

@@ -1,15 +0,15 @@

/*istanbul ignore next*/"use strict";
"use strict";
/*istanbul ignore next*/require("./index");
require("./index");
/*istanbul ignore next*/require("./core");
require("./core");
/*istanbul ignore next*/require("./es2015");
require("./es2015");
/*istanbul ignore next*/require("./flow");
require("./flow");
/*istanbul ignore next*/require("./jsx");
require("./jsx");
/*istanbul ignore next*/require("./misc");
require("./misc");
/*istanbul ignore next*/require("./experimental");
require("./experimental");

@@ -1,6 +0,5 @@

/*istanbul ignore next*/"use strict";
"use strict";
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var _index2 = _interopRequireDefault(_index);

@@ -10,3 +9,3 @@

/*istanbul ignore next*/(0, _index2.default)("JSXAttribute", {
(0, _index2.default)("JSXAttribute", {
visitor: ["name", "value"],

@@ -16,7 +15,7 @@ aliases: ["JSX", "Immutable"],

name: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXIdentifier", "JSXNamespacedName")
validate: (0, _index.assertNodeType)("JSXIdentifier", "JSXNamespacedName")
},
value: {
optional: true,
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXElement", "StringLiteral", "JSXExpressionContainer")
validate: (0, _index.assertNodeType)("JSXElement", "StringLiteral", "JSXExpressionContainer")
}

@@ -26,3 +25,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXClosingElement", {
(0, _index2.default)("JSXClosingElement", {
visitor: ["name"],

@@ -32,3 +31,3 @@ aliases: ["JSX", "Immutable"],

name: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXIdentifier", "JSXMemberExpression")
validate: (0, _index.assertNodeType)("JSXIdentifier", "JSXMemberExpression")
}

@@ -38,3 +37,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXElement", {
(0, _index2.default)("JSXElement", {
builder: ["openingElement", "closingElement", "children", "selfClosing"],

@@ -45,10 +44,10 @@ visitor: ["openingElement", "children", "closingElement"],

openingElement: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXOpeningElement")
validate: (0, _index.assertNodeType)("JSXOpeningElement")
},
closingElement: {
optional: true,
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXClosingElement")
validate: (0, _index.assertNodeType)("JSXClosingElement")
},
children: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXElement")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXElement")))
}

@@ -58,7 +57,7 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXEmptyExpression", {
(0, _index2.default)("JSXEmptyExpression", {
aliases: ["JSX", "Expression"]
});
/*istanbul ignore next*/(0, _index2.default)("JSXExpressionContainer", {
(0, _index2.default)("JSXExpressionContainer", {
visitor: ["expression"],

@@ -68,3 +67,3 @@ aliases: ["JSX", "Immutable"],

expression: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}

@@ -74,3 +73,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXIdentifier", {
(0, _index2.default)("JSXIdentifier", {
builder: ["name"],

@@ -80,3 +79,3 @@ aliases: ["JSX", "Expression"],

name: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("string")
validate: (0, _index.assertValueType)("string")
}

@@ -86,3 +85,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXMemberExpression", {
(0, _index2.default)("JSXMemberExpression", {
visitor: ["object", "property"],

@@ -92,6 +91,6 @@ aliases: ["JSX", "Expression"],

object: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXMemberExpression", "JSXIdentifier")
validate: (0, _index.assertNodeType)("JSXMemberExpression", "JSXIdentifier")
},
property: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXIdentifier")
validate: (0, _index.assertNodeType)("JSXIdentifier")
}

@@ -101,3 +100,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXNamespacedName", {
(0, _index2.default)("JSXNamespacedName", {
visitor: ["namespace", "name"],

@@ -107,6 +106,6 @@ aliases: ["JSX"],

namespace: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXIdentifier")
validate: (0, _index.assertNodeType)("JSXIdentifier")
},
name: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXIdentifier")
validate: (0, _index.assertNodeType)("JSXIdentifier")
}

@@ -116,3 +115,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXOpeningElement", {
(0, _index2.default)("JSXOpeningElement", {
builder: ["name", "attributes", "selfClosing"],

@@ -123,10 +122,10 @@ visitor: ["name", "attributes"],

name: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("JSXIdentifier", "JSXMemberExpression")
validate: (0, _index.assertNodeType)("JSXIdentifier", "JSXMemberExpression")
},
selfClosing: {
default: false,
validate: /*istanbul ignore next*/(0, _index.assertValueType)("boolean")
validate: (0, _index.assertValueType)("boolean")
},
attributes: {
validate: /*istanbul ignore next*/(0, _index.chain)( /*istanbul ignore next*/(0, _index.assertValueType)("array"), /*istanbul ignore next*/(0, _index.assertEach)( /*istanbul ignore next*/(0, _index.assertNodeType)("JSXAttribute", "JSXSpreadAttribute")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("JSXAttribute", "JSXSpreadAttribute")))
}

@@ -136,3 +135,3 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXSpreadAttribute", {
(0, _index2.default)("JSXSpreadAttribute", {
visitor: ["argument"],

@@ -142,3 +141,3 @@ aliases: ["JSX"],

argument: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}

@@ -148,10 +147,10 @@ }

/*istanbul ignore next*/(0, _index2.default)("JSXText", {
aliases: ["JSX"],
(0, _index2.default)("JSXText", {
aliases: ["JSX", "Immutable"],
builder: ["value"],
fields: {
value: {
validate: /*istanbul ignore next*/(0, _index.assertValueType)("string")
validate: (0, _index.assertValueType)("string")
}
}
});

@@ -1,6 +0,5 @@

/*istanbul ignore next*/"use strict";
"use strict";
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var _index2 = _interopRequireDefault(_index);

@@ -10,7 +9,7 @@

/*istanbul ignore next*/(0, _index2.default)("Noop", {
(0, _index2.default)("Noop", {
visitor: []
});
/*istanbul ignore next*/(0, _index2.default)("ParenthesizedExpression", {
(0, _index2.default)("ParenthesizedExpression", {
visitor: ["expression"],

@@ -20,5 +19,5 @@ aliases: ["Expression", "ExpressionWrapper"],

expression: {
validate: /*istanbul ignore next*/(0, _index.assertNodeType)("Expression")
validate: (0, _index.assertNodeType)("Expression")
}
}
});

@@ -1,14 +0,12 @@

/*istanbul ignore next*/"use strict";
"use strict";
exports.__esModule = true;
exports.createUnionTypeAnnotation = createUnionTypeAnnotation;
/*istanbul ignore next*/exports.removeTypeDuplicates = removeTypeDuplicates;
/*istanbul ignore next*/exports.createTypeAnnotationBasedOnTypeof = createTypeAnnotationBasedOnTypeof;
exports.removeTypeDuplicates = removeTypeDuplicates;
exports.createTypeAnnotationBasedOnTypeof = createTypeAnnotationBasedOnTypeof;
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -15,0 +13,0 @@

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -26,3 +26,3 @@ exports.__esModule = true;

});
/*istanbul ignore next*/Object.defineProperty(exports, "FLATTENABLE_KEYS", {
Object.defineProperty(exports, "FLATTENABLE_KEYS", {
enumerable: true,

@@ -33,3 +33,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "FOR_INIT_KEYS", {
Object.defineProperty(exports, "FOR_INIT_KEYS", {
enumerable: true,

@@ -40,3 +40,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "COMMENT_KEYS", {
Object.defineProperty(exports, "COMMENT_KEYS", {
enumerable: true,

@@ -47,3 +47,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "LOGICAL_OPERATORS", {
Object.defineProperty(exports, "LOGICAL_OPERATORS", {
enumerable: true,

@@ -54,3 +54,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "UPDATE_OPERATORS", {
Object.defineProperty(exports, "UPDATE_OPERATORS", {
enumerable: true,

@@ -61,3 +61,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "BOOLEAN_NUMBER_BINARY_OPERATORS", {
Object.defineProperty(exports, "BOOLEAN_NUMBER_BINARY_OPERATORS", {
enumerable: true,

@@ -68,3 +68,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "EQUALITY_BINARY_OPERATORS", {
Object.defineProperty(exports, "EQUALITY_BINARY_OPERATORS", {
enumerable: true,

@@ -75,3 +75,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "COMPARISON_BINARY_OPERATORS", {
Object.defineProperty(exports, "COMPARISON_BINARY_OPERATORS", {
enumerable: true,

@@ -82,3 +82,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "BOOLEAN_BINARY_OPERATORS", {
Object.defineProperty(exports, "BOOLEAN_BINARY_OPERATORS", {
enumerable: true,

@@ -89,3 +89,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "NUMBER_BINARY_OPERATORS", {
Object.defineProperty(exports, "NUMBER_BINARY_OPERATORS", {
enumerable: true,

@@ -96,3 +96,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "BINARY_OPERATORS", {
Object.defineProperty(exports, "BINARY_OPERATORS", {
enumerable: true,

@@ -103,3 +103,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "BOOLEAN_UNARY_OPERATORS", {
Object.defineProperty(exports, "BOOLEAN_UNARY_OPERATORS", {
enumerable: true,

@@ -110,3 +110,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "NUMBER_UNARY_OPERATORS", {
Object.defineProperty(exports, "NUMBER_UNARY_OPERATORS", {
enumerable: true,

@@ -117,3 +117,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "STRING_UNARY_OPERATORS", {
Object.defineProperty(exports, "STRING_UNARY_OPERATORS", {
enumerable: true,

@@ -124,3 +124,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "UNARY_OPERATORS", {
Object.defineProperty(exports, "UNARY_OPERATORS", {
enumerable: true,

@@ -131,3 +131,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "INHERIT_KEYS", {
Object.defineProperty(exports, "INHERIT_KEYS", {
enumerable: true,

@@ -138,3 +138,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "BLOCK_SCOPED_SYMBOL", {
Object.defineProperty(exports, "BLOCK_SCOPED_SYMBOL", {
enumerable: true,

@@ -145,3 +145,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "NOT_LOCAL_BINDING", {
Object.defineProperty(exports, "NOT_LOCAL_BINDING", {
enumerable: true,

@@ -152,22 +152,22 @@ get: function get() {

});
/*istanbul ignore next*/exports.is = is;
/*istanbul ignore next*/exports.isType = isType;
/*istanbul ignore next*/exports.validate = validate;
/*istanbul ignore next*/exports.shallowEqual = shallowEqual;
/*istanbul ignore next*/exports.appendToMemberExpression = appendToMemberExpression;
/*istanbul ignore next*/exports.prependToMemberExpression = prependToMemberExpression;
/*istanbul ignore next*/exports.ensureBlock = ensureBlock;
/*istanbul ignore next*/exports.clone = clone;
/*istanbul ignore next*/exports.cloneWithoutLoc = cloneWithoutLoc;
/*istanbul ignore next*/exports.cloneDeep = cloneDeep;
/*istanbul ignore next*/exports.buildMatchMemberExpression = buildMatchMemberExpression;
/*istanbul ignore next*/exports.removeComments = removeComments;
/*istanbul ignore next*/exports.inheritsComments = inheritsComments;
/*istanbul ignore next*/exports.inheritTrailingComments = inheritTrailingComments;
/*istanbul ignore next*/exports.inheritLeadingComments = inheritLeadingComments;
/*istanbul ignore next*/exports.inheritInnerComments = inheritInnerComments;
/*istanbul ignore next*/exports.inherits = inherits;
/*istanbul ignore next*/exports.assertNode = assertNode;
/*istanbul ignore next*/exports.isNode = isNode;
/*istanbul ignore next*/
exports.is = is;
exports.isType = isType;
exports.validate = validate;
exports.shallowEqual = shallowEqual;
exports.appendToMemberExpression = appendToMemberExpression;
exports.prependToMemberExpression = prependToMemberExpression;
exports.ensureBlock = ensureBlock;
exports.clone = clone;
exports.cloneWithoutLoc = cloneWithoutLoc;
exports.cloneDeep = cloneDeep;
exports.buildMatchMemberExpression = buildMatchMemberExpression;
exports.removeComments = removeComments;
exports.inheritsComments = inheritsComments;
exports.inheritTrailingComments = inheritTrailingComments;
exports.inheritLeadingComments = inheritLeadingComments;
exports.inheritInnerComments = inheritInnerComments;
exports.inherits = inherits;
exports.assertNode = assertNode;
exports.isNode = isNode;
var _retrievers = require("./retrievers");

@@ -181,3 +181,3 @@

});
/*istanbul ignore next*/Object.defineProperty(exports, "getOuterBindingIdentifiers", {
Object.defineProperty(exports, "getOuterBindingIdentifiers", {
enumerable: true,

@@ -188,3 +188,3 @@ get: function get() {

});
/*istanbul ignore next*/
var _validators = require("./validators");

@@ -198,3 +198,3 @@

});
/*istanbul ignore next*/Object.defineProperty(exports, "isReferenced", {
Object.defineProperty(exports, "isReferenced", {
enumerable: true,

@@ -205,3 +205,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isValidIdentifier", {
Object.defineProperty(exports, "isValidIdentifier", {
enumerable: true,

@@ -212,3 +212,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isLet", {
Object.defineProperty(exports, "isLet", {
enumerable: true,

@@ -219,3 +219,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isBlockScoped", {
Object.defineProperty(exports, "isBlockScoped", {
enumerable: true,

@@ -226,3 +226,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isVar", {
Object.defineProperty(exports, "isVar", {
enumerable: true,

@@ -233,3 +233,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isSpecifierDefault", {
Object.defineProperty(exports, "isSpecifierDefault", {
enumerable: true,

@@ -240,3 +240,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isScope", {
Object.defineProperty(exports, "isScope", {
enumerable: true,

@@ -247,3 +247,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "isImmutable", {
Object.defineProperty(exports, "isImmutable", {
enumerable: true,

@@ -254,3 +254,3 @@ get: function get() {

});
/*istanbul ignore next*/
var _converters = require("./converters");

@@ -264,3 +264,3 @@

});
/*istanbul ignore next*/Object.defineProperty(exports, "toSequenceExpression", {
Object.defineProperty(exports, "toSequenceExpression", {
enumerable: true,

@@ -271,3 +271,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "toKeyAlias", {
Object.defineProperty(exports, "toKeyAlias", {
enumerable: true,

@@ -278,3 +278,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "toIdentifier", {
Object.defineProperty(exports, "toIdentifier", {
enumerable: true,

@@ -285,3 +285,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "toBindingIdentifierName", {
Object.defineProperty(exports, "toBindingIdentifierName", {
enumerable: true,

@@ -292,3 +292,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "toStatement", {
Object.defineProperty(exports, "toStatement", {
enumerable: true,

@@ -299,3 +299,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "toExpression", {
Object.defineProperty(exports, "toExpression", {
enumerable: true,

@@ -306,3 +306,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "toBlock", {
Object.defineProperty(exports, "toBlock", {
enumerable: true,

@@ -313,3 +313,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "valueToNode", {
Object.defineProperty(exports, "valueToNode", {
enumerable: true,

@@ -320,3 +320,3 @@ get: function get() {

});
/*istanbul ignore next*/
var _flow = require("./flow");

@@ -330,3 +330,3 @@

});
/*istanbul ignore next*/Object.defineProperty(exports, "removeTypeDuplicates", {
Object.defineProperty(exports, "removeTypeDuplicates", {
enumerable: true,

@@ -337,3 +337,3 @@ get: function get() {

});
/*istanbul ignore next*/Object.defineProperty(exports, "createTypeAnnotationBasedOnTypeof", {
Object.defineProperty(exports, "createTypeAnnotationBasedOnTypeof", {
enumerable: true,

@@ -345,37 +345,30 @@ get: function get() {

var /*istanbul ignore next*/_toFastProperties = require("to-fast-properties");
var _toFastProperties = require("to-fast-properties");
/*istanbul ignore next*/
var _toFastProperties2 = _interopRequireDefault(_toFastProperties);
var /*istanbul ignore next*/_compact = require("lodash/compact");
var _compact = require("lodash/compact");
/*istanbul ignore next*/
var _compact2 = _interopRequireDefault(_compact);
var /*istanbul ignore next*/_clone = require("lodash/clone");
var _clone = require("lodash/clone");
/*istanbul ignore next*/
var _clone2 = _interopRequireDefault(_clone);
var /*istanbul ignore next*/_each = require("lodash/each");
var _each = require("lodash/each");
/*istanbul ignore next*/
var _each2 = _interopRequireDefault(_each);
var /*istanbul ignore next*/_uniq = require("lodash/uniq");
var _uniq = require("lodash/uniq");
/*istanbul ignore next*/
var _uniq2 = _interopRequireDefault(_uniq);
/*istanbul ignore next*/require("./definitions/init");
require("./definitions/init");
var /*istanbul ignore next*/_definitions = require("./definitions");
var _definitions = require("./definitions");
var /*istanbul ignore next*/_react2 = require("./react");
var _react2 = require("./react");
/*istanbul ignore next*/
var _react = _interopRequireWildcard(_react2);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -393,5 +386,5 @@

function registerType(type) {
var is = t[/*istanbul ignore next*/"is" + type];
var is = t["is" + type];
if (!is) {
is = t[/*istanbul ignore next*/"is" + type] = function (node, opts) {
is = t["is" + type] = function (node, opts) {
return t.is(type, node, opts);

@@ -401,6 +394,6 @@ };

t[/*istanbul ignore next*/"assert" + type] = function (node, opts) {
t["assert" + type] = function (node, opts) {
opts = opts || {};
if (!is(node, opts)) {
throw new Error( /*istanbul ignore next*/"Expected type " + /*istanbul ignore next*/(0, _stringify2.default)(type) + " with option " + /*istanbul ignore next*/(0, _stringify2.default)(opts));
throw new Error("Expected type " + (0, _stringify2.default)(type) + " with option " + (0, _stringify2.default)(opts));
}

@@ -412,8 +405,8 @@ };

/*istanbul ignore next*/exports.VISITOR_KEYS = _definitions.VISITOR_KEYS;
/*istanbul ignore next*/exports.ALIAS_KEYS = _definitions.ALIAS_KEYS;
/*istanbul ignore next*/exports.NODE_FIELDS = _definitions.NODE_FIELDS;
/*istanbul ignore next*/exports.BUILDER_KEYS = _definitions.BUILDER_KEYS;
/*istanbul ignore next*/exports.DEPRECATED_KEYS = _definitions.DEPRECATED_KEYS;
/*istanbul ignore next*/exports.react = _react;
exports.VISITOR_KEYS = _definitions.VISITOR_KEYS;
exports.ALIAS_KEYS = _definitions.ALIAS_KEYS;
exports.NODE_FIELDS = _definitions.NODE_FIELDS;
exports.BUILDER_KEYS = _definitions.BUILDER_KEYS;
exports.DEPRECATED_KEYS = _definitions.DEPRECATED_KEYS;
exports.react = _react;

@@ -434,4 +427,4 @@ /**

/*istanbul ignore next*/(0, _each2.default)(t.ALIAS_KEYS, function (aliases, type) {
/*istanbul ignore next*/(0, _each2.default)(aliases, function (alias) {
(0, _each2.default)(t.ALIAS_KEYS, function (aliases, type) {
(0, _each2.default)(aliases, function (alias) {
var types = t.FLIPPED_ALIAS_KEYS[alias] = t.FLIPPED_ALIAS_KEYS[alias] || [];

@@ -446,3 +439,3 @@ types.push(type);

/*istanbul ignore next*/(0, _each2.default)(t.FLIPPED_ALIAS_KEYS, function (types, type) {
(0, _each2.default)(t.FLIPPED_ALIAS_KEYS, function (types, type) {
t[type.toUpperCase() + "_TYPES"] = types;

@@ -452,3 +445,3 @@ registerType(type);

var TYPES = /*istanbul ignore next*/exports.TYPES = /*istanbul ignore next*/(0, _keys2.default)(t.VISITOR_KEYS).concat( /*istanbul ignore next*/(0, _keys2.default)(t.FLIPPED_ALIAS_KEYS)).concat( /*istanbul ignore next*/(0, _keys2.default)(t.DEPRECATED_KEYS));
var TYPES = exports.TYPES = (0, _keys2.default)(t.VISITOR_KEYS).concat((0, _keys2.default)(t.FLIPPED_ALIAS_KEYS)).concat((0, _keys2.default)(t.DEPRECATED_KEYS));

@@ -490,4 +483,3 @@ /**

for ( /*istanbul ignore next*/var _iterator = aliases, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
/*istanbul ignore next*/
for (var _iterator = aliases, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
var _ref;

@@ -517,6 +509,6 @@

/*istanbul ignore next*/(0, _each2.default)(t.BUILDER_KEYS, function (keys, type) {
(0, _each2.default)(t.BUILDER_KEYS, function (keys, type) {
function builder() {
if (arguments.length > keys.length) {
throw new Error( /*istanbul ignore next*/"t." + type + ": Too many arguments passed. Received " + arguments.length + " but can receive " + /*istanbul ignore next*/("no more than " + keys.length));
throw new Error("t." + type + ": Too many arguments passed. Received " + arguments.length + " but can receive " + ("no more than " + keys.length));
}

@@ -529,4 +521,3 @@

for ( /*istanbul ignore next*/var _iterator2 = keys, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : (0, _getIterator3.default)(_iterator2);;) {
/*istanbul ignore next*/
for (var _iterator2 = keys, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : (0, _getIterator3.default)(_iterator2);;) {
var _ref2;

@@ -548,3 +539,3 @@

var arg = arguments[i++];
if (arg === undefined) arg = /*istanbul ignore next*/(0, _clone2.default)(field.default);
if (arg === undefined) arg = (0, _clone2.default)(field.default);

@@ -569,3 +560,2 @@ node[_key] = arg;

/*istanbul ignore next*/
var _loop = function _loop(_type) {

@@ -576,3 +566,3 @@ var newType = t.DEPRECATED_KEYS[_type];

return function () {
console.trace( /*istanbul ignore next*/"The node type " + _type + " has been renamed to " + newType);
console.trace("The node type " + _type + " has been renamed to " + newType);
return fn.apply(this, arguments);

@@ -583,8 +573,7 @@ };

t[_type] = t[_type[0].toLowerCase() + _type.slice(1)] = proxy(t[newType]);
t[/*istanbul ignore next*/"is" + _type] = proxy(t[/*istanbul ignore next*/"is" + newType]);
t[/*istanbul ignore next*/"assert" + _type] = proxy(t[/*istanbul ignore next*/"assert" + newType]);
t["is" + _type] = proxy(t["is" + newType]);
t["assert" + _type] = proxy(t["assert" + newType]);
};
for (var _type in t.DEPRECATED_KEYS) {
/*istanbul ignore next*/
_loop(_type);

@@ -615,6 +604,5 @@ }

function shallowEqual(actual, expected) {
var keys = /*istanbul ignore next*/(0, _keys2.default)(expected);
var keys = (0, _keys2.default)(expected);
for ( /*istanbul ignore next*/var _iterator3 = keys, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : (0, _getIterator3.default)(_iterator3);;) {
/*istanbul ignore next*/
for (var _iterator3 = keys, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : (0, _getIterator3.default)(_iterator3);;) {
var _ref3;

@@ -667,3 +655,3 @@

function ensureBlock(node) {
/*istanbul ignore next*/var key = arguments.length <= 1 || arguments[1] === undefined ? "body" : arguments[1];
var key = arguments.length <= 1 || arguments[1] === undefined ? "body" : arguments[1];

@@ -783,4 +771,3 @@ return node[key] = t.toBlock(node[key], node);

function removeComments(node) {
for ( /*istanbul ignore next*/var _iterator4 = t.COMMENT_KEYS, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : (0, _getIterator3.default)(_iterator4);;) {
/*istanbul ignore next*/
for (var _iterator4 = t.COMMENT_KEYS, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : (0, _getIterator3.default)(_iterator4);;) {
var _ref4;

@@ -829,3 +816,3 @@

if (child && parent) {
child[key] = /*istanbul ignore next*/(0, _uniq2.default)( /*istanbul ignore next*/(0, _compact2.default)([].concat(child[key], parent[key])));
child[key] = (0, _uniq2.default)((0, _compact2.default)([].concat(child[key], parent[key])));
}

@@ -837,3 +824,3 @@ }

// we export the TYPES constant, so we lazy-initialize it before use.
var traverse = /*istanbul ignore next*/void 0;
var traverse = void 0;

@@ -850,4 +837,3 @@ /**

// optionally inherit specific properties if not null
for ( /*istanbul ignore next*/var _iterator5 = t.INHERIT_KEYS.optional, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : (0, _getIterator3.default)(_iterator5);;) {
/*istanbul ignore next*/
for (var _iterator5 = t.INHERIT_KEYS.optional, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : (0, _getIterator3.default)(_iterator5);;) {
var _ref5;

@@ -877,4 +863,3 @@

// force inherit select properties
for ( /*istanbul ignore next*/var _iterator6 = t.INHERIT_KEYS.force, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : (0, _getIterator3.default)(_iterator6);;) {
/*istanbul ignore next*/
for (var _iterator6 = t.INHERIT_KEYS.force, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : (0, _getIterator3.default)(_iterator6);;) {
var _ref6;

@@ -918,9 +903,9 @@

function isNode(node) {
return !!(node && /*istanbul ignore next*/_definitions.VISITOR_KEYS[node.type]);
return !!(node && _definitions.VISITOR_KEYS[node.type]);
}
// Optimize property access.
/*istanbul ignore next*/(0, _toFastProperties2.default)(t);
/*istanbul ignore next*/(0, _toFastProperties2.default)(t.VISITOR_KEYS);
(0, _toFastProperties2.default)(t);
(0, _toFastProperties2.default)(t.VISITOR_KEYS);
//

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -6,13 +6,11 @@ exports.__esModule = true;

exports.isCompatTag = isCompatTag;
/*istanbul ignore next*/exports.buildChildren = buildChildren;
exports.buildChildren = buildChildren;
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var isReactComponent = /*istanbul ignore next*/exports.isReactComponent = t.buildMatchMemberExpression("React.Component");
var isReactComponent = exports.isReactComponent = t.buildMatchMemberExpression("React.Component");

@@ -19,0 +17,0 @@ function isCompatTag(tagName) {

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -10,10 +10,8 @@ exports.__esModule = true;

exports.getBindingIdentifiers = getBindingIdentifiers;
/*istanbul ignore next*/exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers;
exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers;
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -29,3 +27,3 @@

var search = [].concat(node);
var ids = /*istanbul ignore next*/(0, _create2.default)(null);
var ids = (0, _create2.default)(null);

@@ -32,0 +30,0 @@ while (search.length) {

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -10,26 +10,23 @@ exports.__esModule = true;

exports.isBinding = isBinding;
/*istanbul ignore next*/exports.isReferenced = isReferenced;
/*istanbul ignore next*/exports.isValidIdentifier = isValidIdentifier;
/*istanbul ignore next*/exports.isLet = isLet;
/*istanbul ignore next*/exports.isBlockScoped = isBlockScoped;
/*istanbul ignore next*/exports.isVar = isVar;
/*istanbul ignore next*/exports.isSpecifierDefault = isSpecifierDefault;
/*istanbul ignore next*/exports.isScope = isScope;
/*istanbul ignore next*/exports.isImmutable = isImmutable;
exports.isReferenced = isReferenced;
exports.isValidIdentifier = isValidIdentifier;
exports.isLet = isLet;
exports.isBlockScoped = isBlockScoped;
exports.isVar = isVar;
exports.isSpecifierDefault = isSpecifierDefault;
exports.isScope = isScope;
exports.isImmutable = isImmutable;
var /*istanbul ignore next*/_retrievers = require("./retrievers");
var _retrievers = require("./retrievers");
var /*istanbul ignore next*/_esutils = require("esutils");
var _esutils = require("esutils");
/*istanbul ignore next*/
var _esutils2 = _interopRequireDefault(_esutils);
var /*istanbul ignore next*/_index = require("./index");
var _index = require("./index");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_index);
var /*istanbul ignore next*/_constants = require("./constants");
var _constants = require("./constants");
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -46,3 +43,3 @@

function isBinding(node, parent) {
var keys = /*istanbul ignore next*/_retrievers.getBindingIdentifiers.keys[parent.type];
var keys = _retrievers.getBindingIdentifiers.keys[parent.type];
if (keys) {

@@ -110,4 +107,3 @@ for (var i = 0; i < keys.length; i++) {

case "FunctionExpression":
for ( /*istanbul ignore next*/var _iterator = parent.params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
/*istanbul ignore next*/
for (var _iterator = parent.params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
var _ref;

@@ -214,7 +210,6 @@

function isValidIdentifier(name) {
if (typeof name !== "string" || /*istanbul ignore next*/_esutils2.default.keyword.isReservedWordES6(name, true)) {
if (typeof name !== "string" || _esutils2.default.keyword.isReservedWordES6(name, true)) {
return false;
} else {
return (/*istanbul ignore next*/_esutils2.default.keyword.isIdentifierNameES6(name)
);
return _esutils2.default.keyword.isIdentifierNameES6(name);
}

@@ -228,3 +223,3 @@ }

function isLet(node) {
return t.isVariableDeclaration(node) && (node.kind !== "var" || node[/*istanbul ignore next*/_constants.BLOCK_SCOPED_SYMBOL]);
return t.isVariableDeclaration(node) && (node.kind !== "var" || node[_constants.BLOCK_SCOPED_SYMBOL]);
}

@@ -245,3 +240,3 @@

function isVar(node) {
return t.isVariableDeclaration(node, { kind: "var" }) && !node[/*istanbul ignore next*/_constants.BLOCK_SCOPED_SYMBOL];
return t.isVariableDeclaration(node, { kind: "var" }) && !node[_constants.BLOCK_SCOPED_SYMBOL];
}

@@ -248,0 +243,0 @@

{
"name": "babel-types",
"version": "6.9.0",
"version": "6.9.1",
"description": "",

@@ -11,3 +11,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"babel-runtime": "^6.9.0",
"babel-runtime": "^6.9.1",
"babel-traverse": "^6.9.0",

@@ -14,0 +14,0 @@ "esutils": "^2.0.2",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc