Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/template/trailing-comments/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}},
13 "expression": {
14 "type": "TemplateLiteral",
15 "start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}},
16 "expressions": [
17 {
18 "type": "Identifier",
19 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4},"identifierName":"a"},
20 "name": "a"
21 }
22 ],
23 "quasis": [
24 {
25 "type": "TemplateElement",
26 "start":1,"end":1,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":1,"index":1}},
27 "value": {
28 "raw": "",
29 "cooked": ""
30 },
31 "tail": false
32 },
33 {
34 "type": "TemplateElement",
35 "start":5,"end":5,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":5,"index":5}},
36 "value": {
37 "raw": "",
38 "cooked": ""
39 },
40 "tail": true
41 }
42 ]
43 },
44 "trailingComments": [
45 {
46 "type": "CommentLine",
47 "value": " comment",
48 "start":7,"end":17,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":17,"index":17}}
49 }
50 ]
51 }
52 ],
53 "directives": []
54 },
55 "comments": [
56 {
57 "type": "CommentLine",
58 "value": " comment",
59 "start":7,"end":17,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":17,"index":17}}
60 }
61 ]
62 }