Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":22,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":22,"index":22}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":22,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":22,"index":22},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":6,"end":22,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":22,"index":22}},
24 "typeAnnotation": {
25 "type": "ObjectTypeAnnotation",
26 "start":8,"end":22,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":22,"index":22}},
27 "callProperties": [
28 {
29 "type": "ObjectTypeCallProperty",
30 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20}},
31 "static": false,
32 "value": {
33 "type": "FunctionTypeAnnotation",
34 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20}},
35 "params": [],
36 "rest": null,
37 "typeParameters": null,
38 "this": null,
39 "returnType": {
40 "type": "NumberTypeAnnotation",
41 "start":14,"end":20,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":20,"index":20}}
42 }
43 }
44 }
45 ],
46 "properties": [],
47 "indexers": [],
48 "internalSlots": [],
49 "exact": false,
50 "inexact": false
51 }
52 }
53 },
54 "init": null
55 }
56 ],
57 "kind": "var"
58 }
59 ],
60 "directives": []
61 }
62 }