Guest User

Untitled

a guest
Apr 26th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.56 KB | None | 0 0
  1. {
  2. "errors": [],
  3. "tokens": [],
  4. "type": "Program",
  5. "loc": {
  6. "source": "tests/dev/ur.js",
  7. "start": {
  8. "line": 4,
  9. "column": 0
  10. },
  11. "end": {
  12. "line": 16,
  13. "column": 1
  14. }
  15. },
  16. "range": [
  17. 17,
  18. 179
  19. ],
  20. "body": [
  21. {
  22. "type": "FunctionDeclaration",
  23. "loc": {
  24. "source": "tests/dev/ur.js",
  25. "start": {
  26. "line": 4,
  27. "column": 0
  28. },
  29. "end": {
  30. "line": 16,
  31. "column": 1
  32. }
  33. },
  34. "range": [
  35. 17,
  36. 179
  37. ],
  38. "id": {
  39. "type": "Identifier",
  40. "loc": {
  41. "source": "tests/dev/ur.js",
  42. "start": {
  43. "line": 4,
  44. "column": 9
  45. },
  46. "end": {
  47. "line": 4,
  48. "column": 12
  49. }
  50. },
  51. "range": [
  52. 26,
  53. 29
  54. ],
  55. "name": "foo",
  56. "typeAnnotation": null,
  57. "optional": false
  58. },
  59. "params": [
  60. {
  61. "type": "Identifier",
  62. "loc": {
  63. "source": "tests/dev/ur.js",
  64. "start": {
  65. "line": 4,
  66. "column": 13
  67. },
  68. "end": {
  69. "line": 4,
  70. "column": 23
  71. }
  72. },
  73. "range": [
  74. 30,
  75. 40
  76. ],
  77. "name": "x",
  78. "typeAnnotation": {
  79. "type": "TypeAnnotation",
  80. "loc": {
  81. "source": "tests/dev/ur.js",
  82. "start": {
  83. "line": 4,
  84. "column": 14
  85. },
  86. "end": {
  87. "line": 4,
  88. "column": 23
  89. }
  90. },
  91. "range": [
  92. 31,
  93. 40
  94. ],
  95. "typeAnnotation": {
  96. "type": "NullableTypeAnnotation",
  97. "loc": {
  98. "source": "tests/dev/ur.js",
  99. "start": {
  100. "line": 4,
  101. "column": 16
  102. },
  103. "end": {
  104. "line": 4,
  105. "column": 23
  106. }
  107. },
  108. "range": [
  109. 33,
  110. 40
  111. ],
  112. "typeAnnotation": {
  113. "type": "NumberTypeAnnotation",
  114. "loc": {
  115. "source": "tests/dev/ur.js",
  116. "start": {
  117. "line": 4,
  118. "column": 17
  119. },
  120. "end": {
  121. "line": 4,
  122. "column": 23
  123. }
  124. },
  125. "range": [
  126. 34,
  127. 40
  128. ]
  129. }
  130. }
  131. },
  132. "optional": false
  133. }
  134. ],
  135. "body": {
  136. "type": "BlockStatement",
  137. "loc": {
  138. "source": "tests/dev/ur.js",
  139. "start": {
  140. "line": 4,
  141. "column": 33
  142. },
  143. "end": {
  144. "line": 16,
  145. "column": 1
  146. }
  147. },
  148. "range": [
  149. 50,
  150. 179
  151. ],
  152. "body": [
  153. {
  154. "type": "SwitchStatement",
  155. "loc": {
  156. "source": "tests/dev/ur.js",
  157. "start": {
  158. "line": 5,
  159. "column": 2
  160. },
  161. "end": {
  162. "line": 13,
  163. "column": 3
  164. }
  165. },
  166. "range": [
  167. 54,
  168. 161
  169. ],
  170. "discriminant": {
  171. "type": "Identifier",
  172. "loc": {
  173. "source": "tests/dev/ur.js",
  174. "start": {
  175. "line": 5,
  176. "column": 10
  177. },
  178. "end": {
  179. "line": 5,
  180. "column": 11
  181. }
  182. },
  183. "range": [
  184. 62,
  185. 63
  186. ],
  187. "name": "x",
  188. "typeAnnotation": null,
  189. "optional": false
  190. },
  191. "cases": [
  192. {
  193. "type": "SwitchCase",
  194. "loc": {
  195. "source": "tests/dev/ur.js",
  196. "start": {
  197. "line": 6,
  198. "column": 4
  199. },
  200. "end": {
  201. "line": 12,
  202. "column": 5
  203. }
  204. },
  205. "range": [
  206. 71,
  207. 157
  208. ],
  209. "test": null,
  210. "consequent": [
  211. {
  212. "type": "BlockStatement",
  213. "loc": {
  214. "source": "tests/dev/ur.js",
  215. "start": {
  216. "line": 6,
  217. "column": 13
  218. },
  219. "end": {
  220. "line": 12,
  221. "column": 5
  222. }
  223. },
  224. "range": [
  225. 80,
  226. 157
  227. ],
  228. "body": [
  229. {
  230. "type": "IfStatement",
  231. "loc": {
  232. "source": "tests/dev/ur.js",
  233. "start": {
  234. "line": 7,
  235. "column": 6
  236. },
  237. "end": {
  238. "line": 9,
  239. "column": 7
  240. }
  241. },
  242. "range": [
  243. 88,
  244. 119
  245. ],
  246. "test": {
  247. "type": "Identifier",
  248. "loc": {
  249. "source": "tests/dev/ur.js",
  250. "start": {
  251. "line": 7,
  252. "column": 10
  253. },
  254. "end": {
  255. "line": 7,
  256. "column": 11
  257. }
  258. },
  259. "range": [
  260. 92,
  261. 93
  262. ],
  263. "name": "x",
  264. "typeAnnotation": null,
  265. "optional": false
  266. },
  267. "consequent": {
  268. "type": "BlockStatement",
  269. "loc": {
  270. "source": "tests/dev/ur.js",
  271. "start": {
  272. "line": 7,
  273. "column": 13
  274. },
  275. "end": {
  276. "line": 9,
  277. "column": 7
  278. }
  279. },
  280. "range": [
  281. 95,
  282. 119
  283. ],
  284. "body": [
  285. {
  286. "type": "BreakStatement",
  287. "loc": {
  288. "source": "tests/dev/ur.js",
  289. "start": {
  290. "line": 8,
  291. "column": 8
  292. },
  293. "end": {
  294. "line": 8,
  295. "column": 14
  296. }
  297. },
  298. "range": [
  299. 105,
  300. 111
  301. ],
  302. "label": null
  303. }
  304. ]
  305. },
  306. "alternate": null
  307. },
  308. {
  309. "type": "ThrowStatement",
  310. "loc": {
  311. "source": "tests/dev/ur.js",
  312. "start": {
  313. "line": 11,
  314. "column": 6
  315. },
  316. "end": {
  317. "line": 11,
  318. "column": 30
  319. }
  320. },
  321. "range": [
  322. 127,
  323. 151
  324. ],
  325. "argument": {
  326. "type": "NewExpression",
  327. "loc": {
  328. "source": "tests/dev/ur.js",
  329. "start": {
  330. "line": 11,
  331. "column": 12
  332. },
  333. "end": {
  334. "line": 11,
  335. "column": 29
  336. }
  337. },
  338. "range": [
  339. 133,
  340. 150
  341. ],
  342. "callee": {
  343. "type": "Identifier",
  344. "loc": {
  345. "source": "tests/dev/ur.js",
  346. "start": {
  347. "line": 11,
  348. "column": 16
  349. },
  350. "end": {
  351. "line": 11,
  352. "column": 21
  353. }
  354. },
  355. "range": [
  356. 137,
  357. 142
  358. ],
  359. "name": "Error",
  360. "typeAnnotation": null,
  361. "optional": false
  362. },
  363. "arguments": [
  364. {
  365. "type": "Literal",
  366. "loc": {
  367. "source": "tests/dev/ur.js",
  368. "start": {
  369. "line": 11,
  370. "column": 22
  371. },
  372. "end": {
  373. "line": 11,
  374. "column": 28
  375. }
  376. },
  377. "range": [
  378. 143,
  379. 149
  380. ],
  381. "value": "hmmm",
  382. "raw": "'hmmm'"
  383. }
  384. ]
  385. }
  386. }
  387. ]
  388. }
  389. ]
  390. }
  391. ]
  392. },
  393. {
  394. "type": "ReturnStatement",
  395. "loc": {
  396. "source": "tests/dev/ur.js",
  397. "start": {
  398. "line": 15,
  399. "column": 2
  400. },
  401. "end": {
  402. "line": 15,
  403. "column": 14
  404. }
  405. },
  406. "range": [
  407. 165,
  408. 177
  409. ],
  410. "argument": {
  411. "type": "Literal",
  412. "loc": {
  413. "source": "tests/dev/ur.js",
  414. "start": {
  415. "line": 15,
  416. "column": 9
  417. },
  418. "end": {
  419. "line": 15,
  420. "column": 14
  421. }
  422. },
  423. "range": [
  424. 172,
  425. 177
  426. ],
  427. "value": "yup",
  428. "raw": "'yup'"
  429. }
  430. }
  431. ]
  432. },
  433. "async": false,
  434. "generator": false,
  435. "predicate": null,
  436. "expression": false,
  437. "returnType": {
  438. "type": "TypeAnnotation",
  439. "loc": {
  440. "source": "tests/dev/ur.js",
  441. "start": {
  442. "line": 4,
  443. "column": 24
  444. },
  445. "end": {
  446. "line": 4,
  447. "column": 32
  448. }
  449. },
  450. "range": [
  451. 41,
  452. 49
  453. ],
  454. "typeAnnotation": {
  455. "type": "StringTypeAnnotation",
  456. "loc": {
  457. "source": "tests/dev/ur.js",
  458. "start": {
  459. "line": 4,
  460. "column": 26
  461. },
  462. "end": {
  463. "line": 4,
  464. "column": 32
  465. }
  466. },
  467. "range": [
  468. 43,
  469. 49
  470. ]
  471. }
  472. },
  473. "typeParameters": null
  474. }
  475. ],
  476. "comments": [
  477. {
  478. "type": "Block",
  479. "loc": {
  480. "source": "tests/dev/ur.js",
  481. "start": {
  482. "line": 1,
  483. "column": 0
  484. },
  485. "end": {
  486. "line": 3,
  487. "column": 3
  488. }
  489. },
  490. "range": [
  491. 0,
  492. 16
  493. ],
  494. "value": "*\n * @flow\n "
  495. }
  496. ]
  497. }
Add Comment
Please, Sign In to add comment