forked from babel/babel
/
output.json
70 lines (70 loc) 路 2.52 KB
/
output.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"type": "File",
"start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":45}},
"errors": [
"SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (4:2)"
],
"program": {
"type": "Program",
"start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":45}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "InterfaceDeclaration",
"start":8,"end":45,"loc":{"start":{"line":2,"column":0,"index":8},"end":{"line":5,"column":1,"index":45}},
"id": {
"type": "Identifier",
"start":18,"end":19,"loc":{"start":{"line":2,"column":10,"index":18},"end":{"line":2,"column":11,"index":19},"identifierName":"F"},
"name": "F"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start":20,"end":45,"loc":{"start":{"line":2,"column":12,"index":20},"end":{"line":5,"column":1,"index":45}},
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start":24,"end":35,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":13,"index":35}},
"key": {
"type": "Identifier",
"start":24,"end":27,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":5,"index":27},"identifierName":"foo"},
"name": "foo"
},
"static": false,
"proto": false,
"kind": "init",
"method": false,
"value": {
"type": "NumberTypeAnnotation",
"start":29,"end":35,"loc":{"start":{"line":3,"column":7,"index":29},"end":{"line":3,"column":13,"index":35}}
},
"variance": null,
"optional": false
}
],
"indexers": [],
"internalSlots": [],
"exact": false
},
"leadingComments": [
{
"type": "CommentLine",
"value": "@flow",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": "@flow",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
}
]
}