power-assert-recorder.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. {
  2. "type": "CallExpression",
  3. "callee": {
  4. "type": "FunctionExpression",
  5. "id": null,
  6. "params": [],
  7. "body": {
  8. "type": "BlockStatement",
  9. "body": [
  10. {
  11. "type": "FunctionDeclaration",
  12. "id": {
  13. "type": "Identifier",
  14. "name": "PowerAssertRecorder"
  15. },
  16. "params": [],
  17. "body": {
  18. "type": "BlockStatement",
  19. "body": [
  20. {
  21. "type": "ExpressionStatement",
  22. "expression": {
  23. "type": "AssignmentExpression",
  24. "operator": "=",
  25. "left": {
  26. "type": "MemberExpression",
  27. "object": {
  28. "type": "ThisExpression"
  29. },
  30. "property": {
  31. "type": "Identifier",
  32. "name": "captured"
  33. },
  34. "computed": false
  35. },
  36. "right": {
  37. "type": "ArrayExpression",
  38. "elements": []
  39. }
  40. }
  41. }
  42. ]
  43. },
  44. "generator": false
  45. },
  46. {
  47. "type": "ExpressionStatement",
  48. "expression": {
  49. "type": "AssignmentExpression",
  50. "operator": "=",
  51. "left": {
  52. "type": "MemberExpression",
  53. "object": {
  54. "type": "MemberExpression",
  55. "object": {
  56. "type": "Identifier",
  57. "name": "PowerAssertRecorder"
  58. },
  59. "property": {
  60. "type": "Identifier",
  61. "name": "prototype"
  62. },
  63. "computed": false
  64. },
  65. "property": {
  66. "type": "Identifier",
  67. "name": "_capt"
  68. },
  69. "computed": false
  70. },
  71. "right": {
  72. "type": "FunctionExpression",
  73. "id": {
  74. "type": "Identifier",
  75. "name": "_capt"
  76. },
  77. "params": [
  78. {
  79. "type": "Identifier",
  80. "name": "value"
  81. },
  82. {
  83. "type": "Identifier",
  84. "name": "espath"
  85. }
  86. ],
  87. "body": {
  88. "type": "BlockStatement",
  89. "body": [
  90. {
  91. "type": "ExpressionStatement",
  92. "expression": {
  93. "type": "CallExpression",
  94. "callee": {
  95. "type": "MemberExpression",
  96. "object": {
  97. "type": "MemberExpression",
  98. "object": {
  99. "type": "ThisExpression"
  100. },
  101. "property": {
  102. "type": "Identifier",
  103. "name": "captured"
  104. },
  105. "computed": false
  106. },
  107. "property": {
  108. "type": "Identifier",
  109. "name": "push"
  110. },
  111. "computed": false
  112. },
  113. "arguments": [
  114. {
  115. "type": "ObjectExpression",
  116. "properties": [
  117. {
  118. "type": "Property",
  119. "key": {
  120. "type": "Identifier",
  121. "name": "value"
  122. },
  123. "value": {
  124. "type": "Identifier",
  125. "name": "value"
  126. },
  127. "kind": "init",
  128. "method": false,
  129. "shorthand": false,
  130. "computed": false
  131. },
  132. {
  133. "type": "Property",
  134. "key": {
  135. "type": "Identifier",
  136. "name": "espath"
  137. },
  138. "value": {
  139. "type": "Identifier",
  140. "name": "espath"
  141. },
  142. "kind": "init",
  143. "method": false,
  144. "shorthand": false,
  145. "computed": false
  146. }
  147. ]
  148. }
  149. ]
  150. }
  151. },
  152. {
  153. "type": "ReturnStatement",
  154. "argument": {
  155. "type": "Identifier",
  156. "name": "value"
  157. }
  158. }
  159. ]
  160. },
  161. "generator": false
  162. }
  163. }
  164. },
  165. {
  166. "type": "ExpressionStatement",
  167. "expression": {
  168. "type": "AssignmentExpression",
  169. "operator": "=",
  170. "left": {
  171. "type": "MemberExpression",
  172. "object": {
  173. "type": "MemberExpression",
  174. "object": {
  175. "type": "Identifier",
  176. "name": "PowerAssertRecorder"
  177. },
  178. "property": {
  179. "type": "Identifier",
  180. "name": "prototype"
  181. },
  182. "computed": false
  183. },
  184. "property": {
  185. "type": "Identifier",
  186. "name": "_expr"
  187. },
  188. "computed": false
  189. },
  190. "right": {
  191. "type": "FunctionExpression",
  192. "id": {
  193. "type": "Identifier",
  194. "name": "_expr"
  195. },
  196. "params": [
  197. {
  198. "type": "Identifier",
  199. "name": "value"
  200. },
  201. {
  202. "type": "Identifier",
  203. "name": "source"
  204. }
  205. ],
  206. "body": {
  207. "type": "BlockStatement",
  208. "body": [
  209. {
  210. "type": "VariableDeclaration",
  211. "declarations": [
  212. {
  213. "type": "VariableDeclarator",
  214. "id": {
  215. "type": "Identifier",
  216. "name": "capturedValues"
  217. },
  218. "init": {
  219. "type": "MemberExpression",
  220. "object": {
  221. "type": "ThisExpression"
  222. },
  223. "property": {
  224. "type": "Identifier",
  225. "name": "captured"
  226. },
  227. "computed": false
  228. }
  229. }
  230. ],
  231. "kind": "var"
  232. },
  233. {
  234. "type": "ExpressionStatement",
  235. "expression": {
  236. "type": "AssignmentExpression",
  237. "operator": "=",
  238. "left": {
  239. "type": "MemberExpression",
  240. "object": {
  241. "type": "ThisExpression"
  242. },
  243. "property": {
  244. "type": "Identifier",
  245. "name": "captured"
  246. },
  247. "computed": false
  248. },
  249. "right": {
  250. "type": "ArrayExpression",
  251. "elements": []
  252. }
  253. }
  254. },
  255. {
  256. "type": "ReturnStatement",
  257. "argument": {
  258. "type": "ObjectExpression",
  259. "properties": [
  260. {
  261. "type": "Property",
  262. "key": {
  263. "type": "Identifier",
  264. "name": "powerAssertContext"
  265. },
  266. "value": {
  267. "type": "ObjectExpression",
  268. "properties": [
  269. {
  270. "type": "Property",
  271. "key": {
  272. "type": "Identifier",
  273. "name": "value"
  274. },
  275. "value": {
  276. "type": "Identifier",
  277. "name": "value"
  278. },
  279. "kind": "init",
  280. "method": false,
  281. "shorthand": false,
  282. "computed": false
  283. },
  284. {
  285. "type": "Property",
  286. "key": {
  287. "type": "Identifier",
  288. "name": "events"
  289. },
  290. "value": {
  291. "type": "Identifier",
  292. "name": "capturedValues"
  293. },
  294. "kind": "init",
  295. "method": false,
  296. "shorthand": false,
  297. "computed": false
  298. }
  299. ]
  300. },
  301. "kind": "init",
  302. "method": false,
  303. "shorthand": false,
  304. "computed": false
  305. },
  306. {
  307. "type": "Property",
  308. "key": {
  309. "type": "Identifier",
  310. "name": "source"
  311. },
  312. "value": {
  313. "type": "Identifier",
  314. "name": "source"
  315. },
  316. "kind": "init",
  317. "method": false,
  318. "shorthand": false,
  319. "computed": false
  320. }
  321. ]
  322. }
  323. }
  324. ]
  325. },
  326. "generator": false
  327. }
  328. }
  329. },
  330. {
  331. "type": "ReturnStatement",
  332. "argument": {
  333. "type": "Identifier",
  334. "name": "PowerAssertRecorder"
  335. }
  336. }
  337. ]
  338. },
  339. "generator": false
  340. },
  341. "arguments": []
  342. }