Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/directive/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [],
10 "directives": [
11 {
12 "type": "Directive",
13 "start":7,"end":27,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":27,"index":27}},
14 "value": {
15 "type": "DirectiveLiteral",
16 "start":7,"end":19,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":19,"index":19}},
17 "extra": {
18 "rawValue": "use strict",
19 "raw": "\"use strict\"",
20 "expressionValue": "use strict"
21 },
22 "value": "use strict",
23 "trailingComments": [
24 {
25 "type": "CommentBlock",
26 "value": " 2 ",
27 "start":19,"end":26,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":26,"index":26}}
28 }
29 ]
30 },
31 "trailingComments": [
32 {
33 "type": "CommentBlock",
34 "value": " 3 ",
35 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34}}
36 }
37 ],
38 "leadingComments": [
39 {
40 "type": "CommentBlock",
41 "value": " 1 ",
42 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
43 }
44 ]
45 }
46 ]
47 },
48 "comments": [
49 {
50 "type": "CommentBlock",
51 "value": " 1 ",
52 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
53 },
54 {
55 "type": "CommentBlock",
56 "value": " 2 ",
57 "start":19,"end":26,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":26,"index":26}}
58 },
59 {
60 "type": "CommentBlock",
61 "value": " 3 ",
62 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34}}
63 }
64 ]
65 }