Debian Codegraph @

packages/babel-parser/test/fixtures/es2019/json-strings/template-line-separator/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":101,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":83,"index":101}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":101,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":83,"index":101}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":8,"index":17}},
13 "expression": {
14 "type": "TemplateLiteral",
15 "start":1,"end":15,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":2,"column":6,"index":15}},
16 "expressions": [],
17 "quasis": [
18 {
19 "type": "TemplateElement",
20 "start":2,"end":14,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":2,"column":5,"index":14}},
21 "value": {
22 "raw": "before
after",
23 "cooked": "before
after"
24 },
25 "tail": true
26 }
27 ],
28 "extra": {
29 "parenthesized": true,
30 "parenStart": 0
31 }
32 },
33 "trailingComments": [
34 {
35 "type": "CommentLine",
36 "value": " ^ That's a U+2028 LINE SEPARATOR UTF-16 char (between 'before' and 'after')",
37 "start":18,"end":101,"loc":{"start":{"line":3,"column":0,"index":18},"end":{"line":3,"column":83,"index":101}}
38 }
39 ]
40 }
41 ],
42 "directives": []
43 },
44 "comments": [
45 {
46 "type": "CommentLine",
47 "value": " ^ That's a U+2028 LINE SEPARATOR UTF-16 char (between 'before' and 'after')",
48 "start":18,"end":101,"loc":{"start":{"line":3,"column":0,"index":18},"end":{"line":3,"column":83,"index":101}}
49 }
50 ]
51 }