Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/proto-literal-method/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
13 "expression": {
14 "type": "ObjectExpression",
15 "start":1,"end":38,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":38,"index":38}},
16 "properties": [
17 {
18 "type": "ObjectProperty",
19 "start":3,"end":20,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":20,"index":20}},
20 "method": false,
21 "key": {
22 "type": "StringLiteral",
23 "start":3,"end":14,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":14,"index":14}},
24 "extra": {
25 "rawValue": "__proto__",
26 "raw": "\"__proto__\""
27 },
28 "value": "__proto__"
29 },
30 "computed": false,
31 "shorthand": false,
32 "value": {
33 "type": "NullLiteral",
34 "start":16,"end":20,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":20,"index":20}}
35 }
36 },
37 {
38 "type": "ObjectMethod",
39 "start":22,"end":35,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":35,"index":35}},
40 "method": true,
41 "key": {
42 "type": "Identifier",
43 "start":22,"end":31,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":31,"index":31},"identifierName":"__proto__"},
44 "name": "__proto__"
45 },
46 "computed": false,
47 "kind": "method",
48 "id": null,
49 "generator": false,
50 "async": false,
51 "params": [],
52 "body": {
53 "type": "BlockStatement",
54 "start":33,"end":35,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":35,"index":35}},
55 "body": [],
56 "directives": []
57 }
58 }
59 ],
60 "extra": {
61 "trailingComma": 35,
62 "parenthesized": true,
63 "parenStart": 0
64 }
65 }
66 }
67 ],
68 "directives": []
69 }
70 }