forked from babel/babel
/
output.json
78 lines (78 loc) 路 3.17 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
71
72
73
74
75
76
77
78
{
"type": "File",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":41}},
"errors": [
"SyntaxError: A 'get' accessor must not have any formal parameters. (2:2)"
],
"program": {
"type": "Program",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":41}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "TypeAlias",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":41}},
"id": {
"type": "Identifier",
"start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"B"},
"name": "B"
},
"typeParameters": null,
"right": {
"type": "ObjectTypeAnnotation",
"start":9,"end":41,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":3,"column":1,"index":41}},
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start":13,"end":38,"loc":{"start":{"line":2,"column":2,"index":13},"end":{"line":2,"column":27,"index":38}},
"key": {
"type": "Identifier",
"start":17,"end":18,"loc":{"start":{"line":2,"column":6,"index":17},"end":{"line":2,"column":7,"index":18},"identifierName":"a"},
"name": "a"
},
"static": false,
"proto": false,
"kind": "get",
"method": true,
"value": {
"type": "FunctionTypeAnnotation",
"start":13,"end":38,"loc":{"start":{"line":2,"column":2,"index":13},"end":{"line":2,"column":27,"index":38}},
"params": [
{
"type": "FunctionTypeParam",
"start":19,"end":29,"loc":{"start":{"line":2,"column":8,"index":19},"end":{"line":2,"column":18,"index":29}},
"name": {
"type": "Identifier",
"start":19,"end":22,"loc":{"start":{"line":2,"column":8,"index":19},"end":{"line":2,"column":11,"index":22},"identifierName":"foo"},
"name": "foo"
},
"optional": false,
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start":23,"end":29,"loc":{"start":{"line":2,"column":12,"index":23},"end":{"line":2,"column":18,"index":29}}
}
}
],
"rest": null,
"typeParameters": null,
"this": null,
"returnType": {
"type": "NumberTypeAnnotation",
"start":32,"end":38,"loc":{"start":{"line":2,"column":21,"index":32},"end":{"line":2,"column":27,"index":38}}
}
},
"optional": false
}
],
"indexers": [],
"internalSlots": [],
"exact": false,
"inexact": false
}
}
],
"directives": []
}
}