Debian Codegraph @

packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/10/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":51}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":51}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "InterfaceDeclaration",
12 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":51}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14},"identifierName":"IFoo"},
16 "name": "IFoo"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":15,"end":51,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":4,"column":1,"index":51}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":19,"end":29,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":12,"index":29}},
30 "key": {
31 "type": "Identifier",
32 "start":19,"end":20,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":3,"index":20},"identifierName":"x"},
33 "name": "x"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": false,
39 "value": {
40 "type": "BooleanTypeAnnotation",
41 "start":22,"end":29,"loc":{"start":{"line":2,"column":5,"index":22},"end":{"line":2,"column":12,"index":29}}
42 },
43 "variance": null,
44 "optional": false
45 },
46 {
47 "type": "ObjectTypeProperty",
48 "start":33,"end":48,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":17,"index":48}},
49 "key": {
50 "type": "Identifier",
51 "start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39},"identifierName":"static"},
52 "name": "static"
53 },
54 "static": false,
55 "proto": false,
56 "kind": "init",
57 "method": true,
58 "value": {
59 "type": "FunctionTypeAnnotation",
60 "start":33,"end":48,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":17,"index":48}},
61 "params": [],
62 "rest": null,
63 "typeParameters": null,
64 "this": null,
65 "returnType": {
66 "type": "VoidTypeAnnotation",
67 "start":44,"end":48,"loc":{"start":{"line":3,"column":13,"index":44},"end":{"line":3,"column":17,"index":48}}
68 }
69 },
70 "optional": false
71 }
72 ],
73 "indexers": [],
74 "internalSlots": [],
75 "exact": false
76 }
77 }
78 ],
79 "directives": []
80 }
81 }