forked from babel/babel
/
output.json
73 lines (73 loc) 路 2.93 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
{
"type": "File",
"start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":43}},
"errors": [
"SyntaxError: A setter cannot have a `this` parameter. (2:10)",
"SyntaxError: A 'set' accessor must have exactly one formal parameter. (2:2)"
],
"program": {
"type": "Program",
"start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":43}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "TypeAlias",
"start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":43}},
"id": {
"type": "Identifier",
"start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"T"},
"name": "T"
},
"typeParameters": null,
"right": {
"type": "ObjectTypeAnnotation",
"start":9,"end":43,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":3,"column":1,"index":43}},
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start":13,"end":41,"loc":{"start":{"line":2,"column":2,"index":13},"end":{"line":2,"column":30,"index":41}},
"key": {
"type": "Identifier",
"start":17,"end":20,"loc":{"start":{"line":2,"column":6,"index":17},"end":{"line":2,"column":9,"index":20},"identifierName":"foo"},
"name": "foo"
},
"static": false,
"proto": false,
"kind": "set",
"method": true,
"value": {
"type": "FunctionTypeAnnotation",
"start":13,"end":41,"loc":{"start":{"line":2,"column":2,"index":13},"end":{"line":2,"column":30,"index":41}},
"params": [],
"rest": null,
"typeParameters": null,
"this": {
"type": "FunctionTypeParam",
"start":21,"end":33,"loc":{"start":{"line":2,"column":10,"index":21},"end":{"line":2,"column":22,"index":33}},
"name": null,
"optional": false,
"typeAnnotation": {
"type": "StringTypeAnnotation",
"start":27,"end":33,"loc":{"start":{"line":2,"column":16,"index":27},"end":{"line":2,"column":22,"index":33}}
}
},
"returnType": {
"type": "VoidTypeAnnotation",
"start":37,"end":41,"loc":{"start":{"line":2,"column":26,"index":37},"end":{"line":2,"column":30,"index":41}}
}
},
"optional": false
}
],
"indexers": [],
"internalSlots": [],
"exact": false,
"inexact": false
}
}
],
"directives": []
}
}