Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-method/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":69}},
4 "errors": [
5 "SyntaxError: Only properties and spread elements are allowed in record definitions. (2:2)",
6 "SyntaxError: Only properties and spread elements are allowed in record definitions. (3:2)",
7 "SyntaxError: Only properties and spread elements are allowed in record definitions. (4:2)",
8 "SyntaxError: Only properties and spread elements are allowed in record definitions. (5:2)",
9 "SyntaxError: Only properties and spread elements are allowed in record definitions. (6:2)"
10 ],
11 "program": {
12 "type": "Program",
13 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":69}},
14 "sourceType": "script",
15 "interpreter": null,
16 "body": [
17 {
18 "type": "ExpressionStatement",
19 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":69}},
20 "expression": {
21 "type": "RecordExpression",
22 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":69}},
23 "properties": [
24 {
25 "type": "ObjectMethod",
26 "start":5,"end":11,"loc":{"start":{"line":2,"column":2,"index":5},"end":{"line":2,"column":8,"index":11}},
27 "method": true,
28 "key": {
29 "type": "Identifier",
30 "start":5,"end":6,"loc":{"start":{"line":2,"column":2,"index":5},"end":{"line":2,"column":3,"index":6},"identifierName":"a"},
31 "name": "a"
32 },
33 "computed": false,
34 "kind": "method",
35 "id": null,
36 "generator": false,
37 "async": false,
38 "params": [],
39 "body": {
40 "type": "BlockStatement",
41 "start":9,"end":11,"loc":{"start":{"line":2,"column":6,"index":9},"end":{"line":2,"column":8,"index":11}},
42 "body": [],
43 "directives": []
44 }
45 },
46 {
47 "type": "ObjectMethod",
48 "start":15,"end":27,"loc":{"start":{"line":3,"column":2,"index":15},"end":{"line":3,"column":14,"index":27}},
49 "method": true,
50 "key": {
51 "type": "Identifier",
52 "start":21,"end":22,"loc":{"start":{"line":3,"column":8,"index":21},"end":{"line":3,"column":9,"index":22},"identifierName":"b"},
53 "name": "b"
54 },
55 "computed": false,
56 "kind": "method",
57 "id": null,
58 "generator": false,
59 "async": true,
60 "params": [],
61 "body": {
62 "type": "BlockStatement",
63 "start":25,"end":27,"loc":{"start":{"line":3,"column":12,"index":25},"end":{"line":3,"column":14,"index":27}},
64 "body": [],
65 "directives": []
66 }
67 },
68 {
69 "type": "ObjectMethod",
70 "start":31,"end":41,"loc":{"start":{"line":4,"column":2,"index":31},"end":{"line":4,"column":12,"index":41}},
71 "method": false,
72 "key": {
73 "type": "Identifier",
74 "start":35,"end":36,"loc":{"start":{"line":4,"column":6,"index":35},"end":{"line":4,"column":7,"index":36},"identifierName":"c"},
75 "name": "c"
76 },
77 "computed": false,
78 "kind": "get",
79 "id": null,
80 "generator": false,
81 "async": false,
82 "params": [],
83 "body": {
84 "type": "BlockStatement",
85 "start":39,"end":41,"loc":{"start":{"line":4,"column":10,"index":39},"end":{"line":4,"column":12,"index":41}},
86 "body": [],
87 "directives": []
88 }
89 },
90 {
91 "type": "ObjectMethod",
92 "start":45,"end":56,"loc":{"start":{"line":5,"column":2,"index":45},"end":{"line":5,"column":13,"index":56}},
93 "method": false,
94 "key": {
95 "type": "Identifier",
96 "start":49,"end":50,"loc":{"start":{"line":5,"column":6,"index":49},"end":{"line":5,"column":7,"index":50},"identifierName":"d"},
97 "name": "d"
98 },
99 "computed": false,
100 "kind": "set",
101 "id": null,
102 "generator": false,
103 "async": false,
104 "params": [
105 {
106 "type": "Identifier",
107 "start":51,"end":52,"loc":{"start":{"line":5,"column":8,"index":51},"end":{"line":5,"column":9,"index":52},"identifierName":"_"},
108 "name": "_"
109 }
110 ],
111 "body": {
112 "type": "BlockStatement",
113 "start":54,"end":56,"loc":{"start":{"line":5,"column":11,"index":54},"end":{"line":5,"column":13,"index":56}},
114 "body": [],
115 "directives": []
116 }
117 },
118 {
119 "type": "ObjectMethod",
120 "start":60,"end":67,"loc":{"start":{"line":6,"column":2,"index":60},"end":{"line":6,"column":9,"index":67}},
121 "method": true,
122 "key": {
123 "type": "Identifier",
124 "start":61,"end":62,"loc":{"start":{"line":6,"column":3,"index":61},"end":{"line":6,"column":4,"index":62},"identifierName":"e"},
125 "name": "e"
126 },
127 "computed": false,
128 "kind": "method",
129 "id": null,
130 "generator": true,
131 "async": false,
132 "params": [],
133 "body": {
134 "type": "BlockStatement",
135 "start":65,"end":67,"loc":{"start":{"line":6,"column":7,"index":65},"end":{"line":6,"column":9,"index":67}},
136 "body": [],
137 "directives": []
138 }
139 }
140 ]
141 }
142 }
143 ],
144 "directives": []
145 }
146 }