output.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {
  2. "type": "File",
  3. "start": 0,
  4. "end": 43,
  5. "loc": {
  6. "start": {
  7. "line": 1,
  8. "column": 0
  9. },
  10. "end": {
  11. "line": 3,
  12. "column": 1
  13. }
  14. },
  15. "program": {
  16. "type": "Program",
  17. "start": 0,
  18. "end": 43,
  19. "loc": {
  20. "start": {
  21. "line": 1,
  22. "column": 0
  23. },
  24. "end": {
  25. "line": 3,
  26. "column": 1
  27. }
  28. },
  29. "sourceType": "script",
  30. "interpreter": null,
  31. "body": [
  32. {
  33. "type": "FunctionDeclaration",
  34. "start": 0,
  35. "end": 43,
  36. "loc": {
  37. "start": {
  38. "line": 1,
  39. "column": 0
  40. },
  41. "end": {
  42. "line": 3,
  43. "column": 1
  44. }
  45. },
  46. "id": {
  47. "type": "Identifier",
  48. "start": 10,
  49. "end": 13,
  50. "loc": {
  51. "start": {
  52. "line": 1,
  53. "column": 10
  54. },
  55. "end": {
  56. "line": 1,
  57. "column": 13
  58. },
  59. "identifierName": "foo"
  60. },
  61. "name": "foo"
  62. },
  63. "generator": true,
  64. "async": false,
  65. "params": [],
  66. "body": {
  67. "type": "BlockStatement",
  68. "start": 16,
  69. "end": 43,
  70. "loc": {
  71. "start": {
  72. "line": 1,
  73. "column": 16
  74. },
  75. "end": {
  76. "line": 3,
  77. "column": 1
  78. }
  79. },
  80. "body": [
  81. {
  82. "type": "ReturnStatement",
  83. "start": 20,
  84. "end": 41,
  85. "loc": {
  86. "start": {
  87. "line": 2,
  88. "column": 2
  89. },
  90. "end": {
  91. "line": 2,
  92. "column": 23
  93. }
  94. },
  95. "argument": {
  96. "type": "MetaProperty",
  97. "start": 27,
  98. "end": 40,
  99. "loc": {
  100. "start": {
  101. "line": 2,
  102. "column": 9
  103. },
  104. "end": {
  105. "line": 2,
  106. "column": 22
  107. }
  108. },
  109. "meta": {
  110. "type": "Identifier",
  111. "start": 27,
  112. "end": 35,
  113. "loc": {
  114. "start": {
  115. "line": 2,
  116. "column": 9
  117. },
  118. "end": {
  119. "line": 2,
  120. "column": 17
  121. },
  122. "identifierName": "function"
  123. },
  124. "name": "function"
  125. },
  126. "property": {
  127. "type": "Identifier",
  128. "start": 36,
  129. "end": 40,
  130. "loc": {
  131. "start": {
  132. "line": 2,
  133. "column": 18
  134. },
  135. "end": {
  136. "line": 2,
  137. "column": 22
  138. },
  139. "identifierName": "sent"
  140. },
  141. "name": "sent"
  142. }
  143. }
  144. }
  145. ],
  146. "directives": []
  147. }
  148. }
  149. ],
  150. "directives": []
  151. }
  152. }