Debian Codegraph @

packages/babel-parser/test/fixtures/flow/pragma/1/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":30}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
13 "expression": {
14 "type": "BinaryExpression",
15 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
16 "left": {
17 "type": "BinaryExpression",
18 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
19 "left": {
20 "type": "Identifier",
21 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"foo"},
22 "name": "foo"
23 },
24 "operator": "<",
25 "right": {
26 "type": "Identifier",
27 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
28 "name": "x"
29 }
30 },
31 "operator": ">",
32 "right": {
33 "type": "Identifier",
34 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"y"},
35 "name": "y",
36 "extra": {
37 "parenthesized": true,
38 "parenStart": 6
39 }
40 }
41 },
42 "trailingComments": [
43 {
44 "type": "CommentLine",
45 "value": " @flow",
46 "start":11,"end":19,"loc":{"start":{"line":2,"column":0,"index":11},"end":{"line":2,"column":8,"index":19}}
47 }
48 ]
49 },
50 {
51 "type": "ExpressionStatement",
52 "start":20,"end":30,"loc":{"start":{"line":3,"column":0,"index":20},"end":{"line":3,"column":10,"index":30}},
53 "expression": {
54 "type": "BinaryExpression",
55 "start":20,"end":29,"loc":{"start":{"line":3,"column":0,"index":20},"end":{"line":3,"column":9,"index":29}},
56 "left": {
57 "type": "BinaryExpression",
58 "start":20,"end":25,"loc":{"start":{"line":3,"column":0,"index":20},"end":{"line":3,"column":5,"index":25}},
59 "left": {
60 "type": "Identifier",
61 "start":20,"end":23,"loc":{"start":{"line":3,"column":0,"index":20},"end":{"line":3,"column":3,"index":23},"identifierName":"foo"},
62 "name": "foo"
63 },
64 "operator": "<",
65 "right": {
66 "type": "Identifier",
67 "start":24,"end":25,"loc":{"start":{"line":3,"column":4,"index":24},"end":{"line":3,"column":5,"index":25},"identifierName":"x"},
68 "name": "x"
69 }
70 },
71 "operator": ">",
72 "right": {
73 "type": "Identifier",
74 "start":27,"end":28,"loc":{"start":{"line":3,"column":7,"index":27},"end":{"line":3,"column":8,"index":28},"identifierName":"y"},
75 "name": "y",
76 "extra": {
77 "parenthesized": true,
78 "parenStart": 26
79 }
80 }
81 },
82 "leadingComments": [
83 {
84 "type": "CommentLine",
85 "value": " @flow",
86 "start":11,"end":19,"loc":{"start":{"line":2,"column":0,"index":11},"end":{"line":2,"column":8,"index":19}}
87 }
88 ]
89 }
90 ],
91 "directives": []
92 },
93 "comments": [
94 {
95 "type": "CommentLine",
96 "value": " @flow",
97 "start":11,"end":19,"loc":{"start":{"line":2,"column":0,"index":11},"end":{"line":2,"column":8,"index":19}}
98 }
99 ]
100 }