Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-inside-params/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":41,"index":73}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":41,"index":73}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"Foo"},
16 "name": "Foo"
17 },
18 "generator": false,
19 "async": false,
20 "params": [
21 {
22 "type": "AssignmentPattern",
23 "start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}},
24 "left": {
25 "type": "Identifier",
26 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"x"},
27 "name": "x"
28 },
29 "right": {
30 "type": "MetaProperty",
31 "start":17,"end":27,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":27,"index":27}},
32 "meta": {
33 "type": "Identifier",
34 "start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20},"identifierName":"new"},
35 "name": "new"
36 },
37 "property": {
38 "type": "Identifier",
39 "start":21,"end":27,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":27,"index":27},"identifierName":"target"},
40 "name": "target"
41 }
42 }
43 }
44 ],
45 "body": {
46 "type": "BlockStatement",
47 "start":29,"end":31,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":31,"index":31}},
48 "body": [],
49 "directives": []
50 }
51 },
52 {
53 "type": "FunctionDeclaration",
54 "start":32,"end":73,"loc":{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":41,"index":73}},
55 "id": {
56 "type": "Identifier",
57 "start":41,"end":44,"loc":{"start":{"line":2,"column":9,"index":41},"end":{"line":2,"column":12,"index":44},"identifierName":"Bar"},
58 "name": "Bar"
59 },
60 "generator": false,
61 "async": false,
62 "params": [],
63 "body": {
64 "type": "BlockStatement",
65 "start":47,"end":73,"loc":{"start":{"line":2,"column":15,"index":47},"end":{"line":2,"column":41,"index":73}},
66 "body": [
67 {
68 "type": "ExpressionStatement",
69 "start":49,"end":71,"loc":{"start":{"line":2,"column":17,"index":49},"end":{"line":2,"column":39,"index":71}},
70 "expression": {
71 "type": "ArrowFunctionExpression",
72 "start":49,"end":71,"loc":{"start":{"line":2,"column":17,"index":49},"end":{"line":2,"column":39,"index":71}},
73 "id": null,
74 "generator": false,
75 "async": false,
76 "params": [
77 {
78 "type": "AssignmentPattern",
79 "start":50,"end":64,"loc":{"start":{"line":2,"column":18,"index":50},"end":{"line":2,"column":32,"index":64}},
80 "left": {
81 "type": "Identifier",
82 "start":50,"end":51,"loc":{"start":{"line":2,"column":18,"index":50},"end":{"line":2,"column":19,"index":51},"identifierName":"x"},
83 "name": "x"
84 },
85 "right": {
86 "type": "MetaProperty",
87 "start":54,"end":64,"loc":{"start":{"line":2,"column":22,"index":54},"end":{"line":2,"column":32,"index":64}},
88 "meta": {
89 "type": "Identifier",
90 "start":54,"end":57,"loc":{"start":{"line":2,"column":22,"index":54},"end":{"line":2,"column":25,"index":57},"identifierName":"new"},
91 "name": "new"
92 },
93 "property": {
94 "type": "Identifier",
95 "start":58,"end":64,"loc":{"start":{"line":2,"column":26,"index":58},"end":{"line":2,"column":32,"index":64},"identifierName":"target"},
96 "name": "target"
97 }
98 }
99 }
100 ],
101 "body": {
102 "type": "BlockStatement",
103 "start":69,"end":71,"loc":{"start":{"line":2,"column":37,"index":69},"end":{"line":2,"column":39,"index":71}},
104 "body": [],
105 "directives": []
106 }
107 }
108 }
109 ],
110 "directives": []
111 }
112 }
113 ],
114 "directives": []
115 }
116 }