Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-static-block/invalid-continue/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":84}},
4 "errors": [
5 "SyntaxError: Unsyntactic continue. (5:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":84}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "WhileStatement",
15 "start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":84}},
16 "test": {
17 "type": "NumericLiteral",
18 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}},
19 "extra": {
20 "rawValue": 0,
21 "raw": "0"
22 },
23 "value": 0
24 },
25 "body": {
26 "type": "BlockStatement",
27 "start":10,"end":84,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":8,"column":1,"index":84}},
28 "body": [
29 {
30 "type": "ClassDeclaration",
31 "start":14,"end":82,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":7,"column":3,"index":82}},
32 "id": {
33 "type": "Identifier",
34 "start":20,"end":21,"loc":{"start":{"line":2,"column":8,"index":20},"end":{"line":2,"column":9,"index":21},"identifierName":"C"},
35 "name": "C"
36 },
37 "superClass": null,
38 "body": {
39 "type": "ClassBody",
40 "start":22,"end":82,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":7,"column":3,"index":82}},
41 "body": [
42 {
43 "type": "ClassMethod",
44 "start":28,"end":43,"loc":{"start":{"line":3,"column":4,"index":28},"end":{"line":3,"column":19,"index":43}},
45 "static": true,
46 "key": {
47 "type": "Identifier",
48 "start":35,"end":38,"loc":{"start":{"line":3,"column":11,"index":35},"end":{"line":3,"column":14,"index":38},"identifierName":"foo"},
49 "name": "foo"
50 },
51 "computed": false,
52 "kind": "method",
53 "id": null,
54 "generator": false,
55 "async": false,
56 "params": [],
57 "body": {
58 "type": "BlockStatement",
59 "start":41,"end":43,"loc":{"start":{"line":3,"column":17,"index":41},"end":{"line":3,"column":19,"index":43}},
60 "body": [],
61 "directives": []
62 }
63 },
64 {
65 "type": "StaticBlock",
66 "start":48,"end":78,"loc":{"start":{"line":4,"column":4,"index":48},"end":{"line":6,"column":5,"index":78}},
67 "body": [
68 {
69 "type": "ContinueStatement",
70 "start":63,"end":72,"loc":{"start":{"line":5,"column":6,"index":63},"end":{"line":5,"column":15,"index":72}},
71 "label": null
72 }
73 ]
74 }
75 ]
76 }
77 }
78 ],
79 "directives": []
80 }
81 }
82 ],
83 "directives": []
84 }
85 }