Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/module-string-names/export-name-has-lone-surrogate/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":127,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":52,"index":127}},
4 "errors": [
5 "SyntaxError: An export name cannot include a lone surrogate, found '\\ud800'. (2:16)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":127,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":52,"index":127}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":14,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":14,"index":14}},
20 "id": {
21 "type": "Identifier",
22 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"foo"},
23 "name": "foo"
24 },
25 "init": {
26 "type": "NumericLiteral",
27 "start":12,"end":14,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":14,"index":14}},
28 "extra": {
29 "rawValue": 42,
30 "raw": "42"
31 },
32 "value": 42
33 }
34 },
35 {
36 "type": "VariableDeclarator",
37 "start":16,"end":24,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":24,"index":24}},
38 "id": {
39 "type": "Identifier",
40 "start":16,"end":19,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":19,"index":19},"identifierName":"bar"},
41 "name": "bar"
42 },
43 "init": {
44 "type": "NumericLiteral",
45 "start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24}},
46 "extra": {
47 "rawValue": 42,
48 "raw": "42"
49 },
50 "value": 42
51 }
52 }
53 ],
54 "kind": "const"
55 },
56 {
57 "type": "ExportNamedDeclaration",
58 "start":26,"end":58,"loc":{"start":{"line":2,"column":0,"index":26},"end":{"line":2,"column":32,"index":58}},
59 "specifiers": [
60 {
61 "type": "ExportSpecifier",
62 "start":35,"end":56,"loc":{"start":{"line":2,"column":9,"index":35},"end":{"line":2,"column":30,"index":56}},
63 "local": {
64 "type": "Identifier",
65 "start":35,"end":38,"loc":{"start":{"line":2,"column":9,"index":35},"end":{"line":2,"column":12,"index":38},"identifierName":"foo"},
66 "name": "foo"
67 },
68 "exported": {
69 "type": "StringLiteral",
70 "start":42,"end":56,"loc":{"start":{"line":2,"column":16,"index":42},"end":{"line":2,"column":30,"index":56}},
71 "extra": {
72 "rawValue": "\ud800\udbff",
73 "raw": "\"\\ud800\\udbff\""
74 },
75 "value": "\ud800\udbff"
76 }
77 }
78 ],
79 "source": null,
80 "declaration": null,
81 "trailingComments": [
82 {
83 "type": "CommentLine",
84 "value": " should throw",
85 "start":59,"end":74,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":48,"index":74}}
86 }
87 ]
88 },
89 {
90 "type": "ExportNamedDeclaration",
91 "start":75,"end":107,"loc":{"start":{"line":3,"column":0,"index":75},"end":{"line":3,"column":32,"index":107}},
92 "specifiers": [
93 {
94 "type": "ExportSpecifier",
95 "start":84,"end":105,"loc":{"start":{"line":3,"column":9,"index":84},"end":{"line":3,"column":30,"index":105}},
96 "local": {
97 "type": "Identifier",
98 "start":84,"end":87,"loc":{"start":{"line":3,"column":9,"index":84},"end":{"line":3,"column":12,"index":87},"identifierName":"bar"},
99 "name": "bar"
100 },
101 "exported": {
102 "type": "StringLiteral",
103 "start":91,"end":105,"loc":{"start":{"line":3,"column":16,"index":91},"end":{"line":3,"column":30,"index":105}},
104 "extra": {
105 "rawValue": "􏿿",
106 "raw": "\"\\udbff\\udfff\""
107 },
108 "value": "􏿿"
109 }
110 }
111 ],
112 "source": null,
113 "declaration": null,
114 "trailingComments": [
115 {
116 "type": "CommentLine",
117 "value": " should not throw",
118 "start":108,"end":127,"loc":{"start":{"line":3,"column":33,"index":108},"end":{"line":3,"column":52,"index":127}}
119 }
120 ],
121 "leadingComments": [
122 {
123 "type": "CommentLine",
124 "value": " should throw",
125 "start":59,"end":74,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":48,"index":74}}
126 }
127 ]
128 }
129 ],
130 "directives": []
131 },
132 "comments": [
133 {
134 "type": "CommentLine",
135 "value": " should throw",
136 "start":59,"end":74,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":48,"index":74}}
137 },
138 {
139 "type": "CommentLine",
140 "value": " should not throw",
141 "start":108,"end":127,"loc":{"start":{"line":3,"column":33,"index":108},"end":{"line":3,"column":52,"index":127}}
142 }
143 ]
144 }