22267a5418a62f43cfcb981e4e5ae994630b0a5aa3b42a4b78ef6e746d9e7a79d3a144c4732bf97ae41b20f89eb9ec1717328c31d16591d78d8d3fd39eb678 2.1 KB

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