Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

experimental.js 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. "use strict";
  2. var _utils = require("./utils");
  3. var _core = require("./core");
  4. (0, _utils.default)("ArgumentPlaceholder", {});
  5. (0, _utils.default)("BindExpression", {
  6. visitor: ["object", "callee"],
  7. aliases: ["Expression"],
  8. fields: !process.env.BABEL_TYPES_8_BREAKING ? {
  9. object: {
  10. validate: Object.assign(() => {}, {
  11. oneOfNodeTypes: ["Expression"]
  12. })
  13. },
  14. callee: {
  15. validate: Object.assign(() => {}, {
  16. oneOfNodeTypes: ["Expression"]
  17. })
  18. }
  19. } : {
  20. object: {
  21. validate: (0, _utils.assertNodeType)("Expression")
  22. },
  23. callee: {
  24. validate: (0, _utils.assertNodeType)("Expression")
  25. }
  26. }
  27. });
  28. (0, _utils.default)("ClassProperty", {
  29. visitor: ["key", "value", "typeAnnotation", "decorators"],
  30. builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
  31. aliases: ["Property"],
  32. fields: Object.assign({}, _core.classMethodOrPropertyCommon, {
  33. value: {
  34. validate: (0, _utils.assertNodeType)("Expression"),
  35. optional: true
  36. },
  37. definite: {
  38. validate: (0, _utils.assertValueType)("boolean"),
  39. optional: true
  40. },
  41. typeAnnotation: {
  42. validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
  43. optional: true
  44. },
  45. decorators: {
  46. validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
  47. optional: true
  48. },
  49. readonly: {
  50. validate: (0, _utils.assertValueType)("boolean"),
  51. optional: true
  52. },
  53. declare: {
  54. validate: (0, _utils.assertValueType)("boolean"),
  55. optional: true
  56. }
  57. })
  58. });
  59. (0, _utils.default)("PipelineTopicExpression", {
  60. builder: ["expression"],
  61. visitor: ["expression"],
  62. fields: {
  63. expression: {
  64. validate: (0, _utils.assertNodeType)("Expression")
  65. }
  66. }
  67. });
  68. (0, _utils.default)("PipelineBareFunction", {
  69. builder: ["callee"],
  70. visitor: ["callee"],
  71. fields: {
  72. callee: {
  73. validate: (0, _utils.assertNodeType)("Expression")
  74. }
  75. }
  76. });
  77. (0, _utils.default)("PipelinePrimaryTopicReference", {
  78. aliases: ["Expression"]
  79. });
  80. (0, _utils.default)("ClassPrivateProperty", {
  81. visitor: ["key", "value", "decorators"],
  82. builder: ["key", "value", "decorators", "static"],
  83. aliases: ["Property", "Private"],
  84. fields: {
  85. key: {
  86. validate: (0, _utils.assertNodeType)("PrivateName")
  87. },
  88. value: {
  89. validate: (0, _utils.assertNodeType)("Expression"),
  90. optional: true
  91. },
  92. typeAnnotation: {
  93. validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
  94. optional: true
  95. },
  96. decorators: {
  97. validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
  98. optional: true
  99. }
  100. }
  101. });
  102. (0, _utils.default)("ClassPrivateMethod", {
  103. builder: ["kind", "key", "params", "body", "static"],
  104. visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"],
  105. aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"],
  106. fields: Object.assign({}, _core.classMethodOrDeclareMethodCommon, _core.functionTypeAnnotationCommon, {
  107. key: {
  108. validate: (0, _utils.assertNodeType)("PrivateName")
  109. },
  110. body: {
  111. validate: (0, _utils.assertNodeType)("BlockStatement")
  112. }
  113. })
  114. });
  115. (0, _utils.default)("ImportAttribute", {
  116. visitor: ["key", "value"],
  117. fields: {
  118. key: {
  119. validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
  120. },
  121. value: {
  122. validate: (0, _utils.assertNodeType)("StringLiteral")
  123. }
  124. }
  125. });
  126. (0, _utils.default)("Decorator", {
  127. visitor: ["expression"],
  128. fields: {
  129. expression: {
  130. validate: (0, _utils.assertNodeType)("Expression")
  131. }
  132. }
  133. });
  134. (0, _utils.default)("DoExpression", {
  135. visitor: ["body"],
  136. builder: ["body", "async"],
  137. aliases: ["Expression"],
  138. fields: {
  139. body: {
  140. validate: (0, _utils.assertNodeType)("BlockStatement")
  141. },
  142. async: {
  143. validate: (0, _utils.assertValueType)("boolean"),
  144. default: false
  145. }
  146. }
  147. });
  148. (0, _utils.default)("ExportDefaultSpecifier", {
  149. visitor: ["exported"],
  150. aliases: ["ModuleSpecifier"],
  151. fields: {
  152. exported: {
  153. validate: (0, _utils.assertNodeType)("Identifier")
  154. }
  155. }
  156. });
  157. (0, _utils.default)("PrivateName", {
  158. visitor: ["id"],
  159. aliases: ["Private"],
  160. fields: {
  161. id: {
  162. validate: (0, _utils.assertNodeType)("Identifier")
  163. }
  164. }
  165. });
  166. (0, _utils.default)("RecordExpression", {
  167. visitor: ["properties"],
  168. aliases: ["Expression"],
  169. fields: {
  170. properties: {
  171. validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectProperty", "SpreadElement")))
  172. }
  173. }
  174. });
  175. (0, _utils.default)("TupleExpression", {
  176. fields: {
  177. elements: {
  178. validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement"))),
  179. default: []
  180. }
  181. },
  182. visitor: ["elements"],
  183. aliases: ["Expression"]
  184. });
  185. (0, _utils.default)("DecimalLiteral", {
  186. builder: ["value"],
  187. fields: {
  188. value: {
  189. validate: (0, _utils.assertValueType)("string")
  190. }
  191. },
  192. aliases: ["Expression", "Pureish", "Literal", "Immutable"]
  193. });
  194. (0, _utils.default)("StaticBlock", {
  195. visitor: ["body"],
  196. fields: {
  197. body: {
  198. validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
  199. }
  200. },
  201. aliases: ["Scopable", "BlockParent"]
  202. });
  203. (0, _utils.default)("ModuleExpression", {
  204. visitor: ["body"],
  205. fields: {
  206. body: {
  207. validate: (0, _utils.assertNodeType)("Program")
  208. }
  209. },
  210. aliases: ["Expression"]
  211. });