Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/function-sent/enabled-function-keyword-declaration/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
4 "errors": [
5 "SyntaxError: Missing semicolon. (2:17)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
16 "id": {
17 "type": "Identifier",
18 "start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "generator": true,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":16,"end":40,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":40}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35}},
31 "expression": {
32 "type": "CallExpression",
33 "start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35}},
34 "callee": {
35 "type": "MetaProperty",
36 "start":20,"end":33,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":15,"index":33}},
37 "meta": {
38 "type": "Identifier",
39 "start":20,"end":28,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":10,"index":28},"identifierName":"function"},
40 "name": "function"
41 },
42 "property": {
43 "type": "Identifier",
44 "start":29,"end":33,"loc":{"start":{"line":2,"column":11,"index":29},"end":{"line":2,"column":15,"index":33},"identifierName":"sent"},
45 "name": "sent"
46 }
47 },
48 "arguments": []
49 }
50 },
51 {
52 "type": "BlockStatement",
53 "start":36,"end":38,"loc":{"start":{"line":2,"column":18,"index":36},"end":{"line":2,"column":20,"index":38}},
54 "body": [],
55 "directives": []
56 }
57 ],
58 "directives": []
59 }
60 }
61 ],
62 "directives": []
63 }
64 }