UNPKG

2.19 kBJavaScriptView Raw
1"use strict";
2
3var _index = require("./index");
4
5var _index2 = _interopRequireDefault(_index);
6
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
9(0, _index2.default)("AwaitExpression", {
10 builder: ["argument"],
11 visitor: ["argument"],
12 aliases: ["Expression", "Terminatorless"],
13 fields: {
14 argument: {
15 validate: (0, _index.assertNodeType)("Expression")
16 }
17 }
18});
19
20(0, _index2.default)("ForAwaitStatement", {
21 visitor: ["left", "right", "body"],
22 aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
23 fields: {
24 left: {
25 validate: (0, _index.assertNodeType)("VariableDeclaration", "LVal")
26 },
27 right: {
28 validate: (0, _index.assertNodeType)("Expression")
29 },
30 body: {
31 validate: (0, _index.assertNodeType)("Statement")
32 }
33 }
34});
35
36(0, _index2.default)("BindExpression", {
37 visitor: ["object", "callee"],
38 aliases: ["Expression"],
39 fields: {}
40});
41
42(0, _index2.default)("Import", {
43 aliases: ["Expression"]
44});
45
46(0, _index2.default)("Decorator", {
47 visitor: ["expression"],
48 fields: {
49 expression: {
50 validate: (0, _index.assertNodeType)("Expression")
51 }
52 }
53});
54
55(0, _index2.default)("DoExpression", {
56 visitor: ["body"],
57 aliases: ["Expression"],
58 fields: {
59 body: {
60 validate: (0, _index.assertNodeType)("BlockStatement")
61 }
62 }
63});
64
65(0, _index2.default)("ExportDefaultSpecifier", {
66 visitor: ["exported"],
67 aliases: ["ModuleSpecifier"],
68 fields: {
69 exported: {
70 validate: (0, _index.assertNodeType)("Identifier")
71 }
72 }
73});
74
75(0, _index2.default)("ExportNamespaceSpecifier", {
76 visitor: ["exported"],
77 aliases: ["ModuleSpecifier"],
78 fields: {
79 exported: {
80 validate: (0, _index.assertNodeType)("Identifier")
81 }
82 }
83});
84
85(0, _index2.default)("RestProperty", {
86 visitor: ["argument"],
87 aliases: ["UnaryLike"],
88 fields: {
89 argument: {
90 validate: (0, _index.assertNodeType)("LVal")
91 }
92 }
93});
94
95(0, _index2.default)("SpreadProperty", {
96 visitor: ["argument"],
97 aliases: ["UnaryLike"],
98 fields: {
99 argument: {
100 validate: (0, _index.assertNodeType)("Expression")
101 }
102 }
103});
\No newline at end of file