Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-export/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":49}},
4 "errors": [
5 "SyntaxError: Unexpected keyword 'export'. (1:4)",
6 "SyntaxError: Escape sequence in keyword export. (1:4)",
7 "SyntaxError: Escape sequence in keyword export. (4:0)"
8 ],
9 "program": {
10 "type": "Program",
11 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":49}},
12 "sourceType": "module",
13 "interpreter": null,
14 "body": [
15 {
16 "type": "VariableDeclaration",
17 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
18 "declarations": [
19 {
20 "type": "VariableDeclarator",
21 "start":4,"end":21,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":21,"index":21}},
22 "id": {
23 "type": "Identifier",
24 "start":4,"end":15,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":15,"index":15},"identifierName":"export"},
25 "name": "export"
26 },
27 "init": {
28 "type": "NumericLiteral",
29 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21}},
30 "extra": {
31 "rawValue": 123,
32 "raw": "123"
33 },
34 "value": 123
35 }
36 }
37 ],
38 "kind": "var"
39 },
40 {
41 "type": "VariableDeclaration",
42 "start":24,"end":30,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":6,"index":30}},
43 "declarations": [
44 {
45 "type": "VariableDeclarator",
46 "start":28,"end":29,"loc":{"start":{"line":3,"column":4,"index":28},"end":{"line":3,"column":5,"index":29}},
47 "id": {
48 "type": "Identifier",
49 "start":28,"end":29,"loc":{"start":{"line":3,"column":4,"index":28},"end":{"line":3,"column":5,"index":29},"identifierName":"x"},
50 "name": "x"
51 },
52 "init": null
53 }
54 ],
55 "kind": "var"
56 },
57 {
58 "type": "ExportNamedDeclaration",
59 "start":31,"end":49,"loc":{"start":{"line":4,"column":0,"index":31},"end":{"line":4,"column":18,"index":49}},
60 "specifiers": [
61 {
62 "type": "ExportSpecifier",
63 "start":45,"end":46,"loc":{"start":{"line":4,"column":14,"index":45},"end":{"line":4,"column":15,"index":46}},
64 "local": {
65 "type": "Identifier",
66 "start":45,"end":46,"loc":{"start":{"line":4,"column":14,"index":45},"end":{"line":4,"column":15,"index":46},"identifierName":"x"},
67 "name": "x"
68 },
69 "exported": {
70 "type": "Identifier",
71 "start":45,"end":46,"loc":{"start":{"line":4,"column":14,"index":45},"end":{"line":4,"column":15,"index":46},"identifierName":"x"},
72 "name": "x"
73 }
74 }
75 ],
76 "source": null,
77 "declaration": null
78 }
79 ],
80 "directives": []
81 }
82 }