Debian Codegraph @

packages/babel-parser/test/fixtures/flow/call-properties/4/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":30,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":30,"index":30}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":30,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":30,"index":30},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":6,"end":30,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":30,"index":30}},
24 "typeAnnotation": {
25 "type": "ObjectTypeAnnotation",
26 "start":8,"end":30,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":30,"index":30}},
27 "callProperties": [
28 {
29 "type": "ObjectTypeCallProperty",
30 "start":10,"end":27,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":27,"index":27}},
31 "static": false,
32 "value": {
33 "type": "FunctionTypeAnnotation",
34 "start":10,"end":27,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":27,"index":27}},
35 "params": [
36 {
37 "type": "FunctionTypeParam",
38 "start":14,"end":18,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":18,"index":18}},
39 "name": {
40 "type": "Identifier",
41 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"x"},
42 "name": "x"
43 },
44 "optional": false,
45 "typeAnnotation": {
46 "type": "GenericTypeAnnotation",
47 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18}},
48 "typeParameters": null,
49 "id": {
50 "type": "Identifier",
51 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"T"},
52 "name": "T"
53 }
54 }
55 }
56 ],
57 "rest": null,
58 "typeParameters": {
59 "type": "TypeParameterDeclaration",
60 "start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13}},
61 "params": [
62 {
63 "type": "TypeParameter",
64 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12}},
65 "name": "T",
66 "variance": null
67 }
68 ]
69 },
70 "this": null,
71 "returnType": {
72 "type": "NumberTypeAnnotation",
73 "start":21,"end":27,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":27,"index":27}}
74 }
75 }
76 }
77 ],
78 "properties": [],
79 "indexers": [],
80 "internalSlots": [],
81 "exact": false,
82 "inexact": false
83 }
84 }
85 },
86 "init": null
87 }
88 ],
89 "kind": "var"
90 }
91 ],
92 "directives": []
93 }
94 }