Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":40}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":40}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":30,"end":40,"loc":{"start":{"line":3,"column":0,"index":30},"end":{"line":3,"column":10,"index":40}},
13 "expression": {
14 "type": "CallExpression",
15 "start":30,"end":39,"loc":{"start":{"line":3,"column":0,"index":30},"end":{"line":3,"column":9,"index":39}},
16 "callee": {
17 "type": "Identifier",
18 "start":30,"end":33,"loc":{"start":{"line":3,"column":0,"index":30},"end":{"line":3,"column":3,"index":33},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "typeArguments": {
22 "type": "TypeParameterInstantiation",
23 "start":33,"end":36,"loc":{"start":{"line":3,"column":3,"index":33},"end":{"line":3,"column":6,"index":36}},
24 "params": [
25 {
26 "type": "GenericTypeAnnotation",
27 "start":34,"end":35,"loc":{"start":{"line":3,"column":4,"index":34},"end":{"line":3,"column":5,"index":35}},
28 "typeParameters": null,
29 "id": {
30 "type": "Identifier",
31 "start":34,"end":35,"loc":{"start":{"line":3,"column":4,"index":34},"end":{"line":3,"column":5,"index":35},"identifierName":"x"},
32 "name": "x"
33 }
34 }
35 ]
36 },
37 "arguments": [
38 {
39 "type": "Identifier",
40 "start":37,"end":38,"loc":{"start":{"line":3,"column":7,"index":37},"end":{"line":3,"column":8,"index":38},"identifierName":"y"},
41 "name": "y"
42 }
43 ]
44 },
45 "leadingComments": [
46 {
47 "type": "CommentLine",
48 "value": " arbitrary comment",
49 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}
50 },
51 {
52 "type": "CommentLine",
53 "value": " @flow",
54 "start":21,"end":29,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":8,"index":29}}
55 }
56 ]
57 }
58 ],
59 "directives": []
60 },
61 "comments": [
62 {
63 "type": "CommentLine",
64 "value": " arbitrary comment",
65 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}
66 },
67 {
68 "type": "CommentLine",
69 "value": " @flow",
70 "start":21,"end":29,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":8,"index":29}}
71 }
72 ]
73 }