Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/trailing-function-commas/1/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
13 "expression": {
14 "type": "CallExpression",
15 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
16 "callee": {
17 "type": "Identifier",
18 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"log"},
19 "name": "log"
20 },
21 "extra": {
22 "trailingComma": 13
23 },
24 "arguments": [
25 {
26 "type": "Identifier",
27 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"n"},
28 "name": "n"
29 },
30 {
31 "type": "StringLiteral",
32 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
33 "extra": {
34 "rawValue": "=",
35 "raw": "'='"
36 },
37 "value": "="
38 },
39 {
40 "type": "NumericLiteral",
41 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13}},
42 "extra": {
43 "rawValue": 2,
44 "raw": "2"
45 },
46 "value": 2
47 }
48 ]
49 }
50 }
51 ],
52 "directives": []
53 }
54 }