Debian Codegraph @

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

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