Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word-strict/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":45,"index":59}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'implements'. (2:11)",
6 "SyntaxError: Unexpected reserved word 'interface'. (2:23)",
7 "SyntaxError: Unexpected reserved word 'package'. (2:34)"
8 ],
9 "program": {
10 "type": "Program",
11 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":45,"index":59}},
12 "sourceType": "script",
13 "interpreter": null,
14 "body": [
15 {
16 "type": "VariableDeclaration",
17 "start":14,"end":59,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":45,"index":59}},
18 "declarations": [
19 {
20 "type": "VariableDeclarator",
21 "start":18,"end":58,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":44,"index":58}},
22 "id": {
23 "type": "Identifier",
24 "start":18,"end":19,"loc":{"start":{"line":2,"column":4,"index":18},"end":{"line":2,"column":5,"index":19},"identifierName":"x"},
25 "name": "x"
26 },
27 "init": {
28 "type": "ObjectExpression",
29 "start":23,"end":57,"loc":{"start":{"line":2,"column":9,"index":23},"end":{"line":2,"column":43,"index":57}},
30 "properties": [
31 {
32 "type": "ObjectProperty",
33 "start":25,"end":35,"loc":{"start":{"line":2,"column":11,"index":25},"end":{"line":2,"column":21,"index":35}},
34 "method": false,
35 "key": {
36 "type": "Identifier",
37 "start":25,"end":35,"loc":{"start":{"line":2,"column":11,"index":25},"end":{"line":2,"column":21,"index":35},"identifierName":"implements"},
38 "name": "implements"
39 },
40 "computed": false,
41 "shorthand": true,
42 "value": {
43 "type": "Identifier",
44 "start":25,"end":35,"loc":{"start":{"line":2,"column":11,"index":25},"end":{"line":2,"column":21,"index":35},"identifierName":"implements"},
45 "name": "implements"
46 },
47 "extra": {
48 "shorthand": true
49 }
50 },
51 {
52 "type": "ObjectProperty",
53 "start":37,"end":46,"loc":{"start":{"line":2,"column":23,"index":37},"end":{"line":2,"column":32,"index":46}},
54 "method": false,
55 "key": {
56 "type": "Identifier",
57 "start":37,"end":46,"loc":{"start":{"line":2,"column":23,"index":37},"end":{"line":2,"column":32,"index":46},"identifierName":"interface"},
58 "name": "interface"
59 },
60 "computed": false,
61 "shorthand": true,
62 "value": {
63 "type": "Identifier",
64 "start":37,"end":46,"loc":{"start":{"line":2,"column":23,"index":37},"end":{"line":2,"column":32,"index":46},"identifierName":"interface"},
65 "name": "interface"
66 },
67 "extra": {
68 "shorthand": true
69 }
70 },
71 {
72 "type": "ObjectProperty",
73 "start":48,"end":55,"loc":{"start":{"line":2,"column":34,"index":48},"end":{"line":2,"column":41,"index":55}},
74 "method": false,
75 "key": {
76 "type": "Identifier",
77 "start":48,"end":55,"loc":{"start":{"line":2,"column":34,"index":48},"end":{"line":2,"column":41,"index":55},"identifierName":"package"},
78 "name": "package"
79 },
80 "computed": false,
81 "shorthand": true,
82 "value": {
83 "type": "Identifier",
84 "start":48,"end":55,"loc":{"start":{"line":2,"column":34,"index":48},"end":{"line":2,"column":41,"index":55},"identifierName":"package"},
85 "name": "package"
86 },
87 "extra": {
88 "shorthand": true
89 }
90 }
91 ],
92 "extra": {
93 "parenthesized": true,
94 "parenStart": 22
95 }
96 }
97 }
98 ],
99 "kind": "var"
100 }
101 ],
102 "directives": [
103 {
104 "type": "Directive",
105 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
106 "value": {
107 "type": "DirectiveLiteral",
108 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
109 "extra": {
110 "rawValue": "use strict",
111 "raw": "\"use strict\"",
112 "expressionValue": "use strict"
113 },
114 "value": "use strict"
115 }
116 }
117 ]
118 }
119 }