blob: d65d6096844730f80ac00046fc170838e7d7d9ba [file] [log] [blame]
"use strict";
var _index = require("./index");
var _index2 = _interopRequireDefault(_index);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _index2.default)("AwaitExpression", {
builder: ["argument"],
visitor: ["argument"],
aliases: ["Expression", "Terminatorless"],
fields: {
argument: {
validate: (0, _index.assertNodeType)("Expression")
}
}
});
(0, _index2.default)("ForAwaitStatement", {
visitor: ["left", "right", "body"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
fields: {
left: {
validate: (0, _index.assertNodeType)("VariableDeclaration", "LVal")
},
right: {
validate: (0, _index.assertNodeType)("Expression")
},
body: {
validate: (0, _index.assertNodeType)("Statement")
}
}
});
(0, _index2.default)("BindExpression", {
visitor: ["object", "callee"],
aliases: ["Expression"],
fields: {}
});
(0, _index2.default)("Import", {
aliases: ["Expression"]
});
(0, _index2.default)("Decorator", {
visitor: ["expression"],
fields: {
expression: {
validate: (0, _index.assertNodeType)("Expression")
}
}
});
(0, _index2.default)("DoExpression", {
visitor: ["body"],
aliases: ["Expression"],
fields: {
body: {
validate: (0, _index.assertNodeType)("BlockStatement")
}
}
});
(0, _index2.default)("ExportDefaultSpecifier", {
visitor: ["exported"],
aliases: ["ModuleSpecifier"],
fields: {
exported: {
validate: (0, _index.assertNodeType)("Identifier")
}
}
});
(0, _index2.default)("ExportNamespaceSpecifier", {
visitor: ["exported"],
aliases: ["ModuleSpecifier"],
fields: {
exported: {
validate: (0, _index.assertNodeType)("Identifier")
}
}
});
(0, _index2.default)("RestProperty", {
visitor: ["argument"],
aliases: ["UnaryLike"],
fields: {
argument: {
validate: (0, _index.assertNodeType)("LVal")
}
}
});
(0, _index2.default)("SpreadProperty", {
visitor: ["argument"],
aliases: ["UnaryLike"],
fields: {
argument: {
validate: (0, _index.assertNodeType)("Expression")
}
}
});