forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
output.json
90 lines (90 loc) 路 3.45 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
79
80
81
82
83
84
85
86
87
88
89
90
{
"type": "File",
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":60}},
"errors": [
"SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (4:2)",
"SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (4:2)"
],
"program": {
"type": "Program",
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":60}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "InterfaceDeclaration",
"start":8,"end":60,"loc":{"start":{"line":2,"column":0,"index":8},"end":{"line":6,"column":1,"index":60}},
"id": {
"type": "Identifier",
"start":18,"end":19,"loc":{"start":{"line":2,"column":10,"index":18},"end":{"line":2,"column":11,"index":19},"identifierName":"H"},
"name": "H"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start":20,"end":60,"loc":{"start":{"line":2,"column":12,"index":20},"end":{"line":6,"column":1,"index":60}},
"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
},
{
"type": "ObjectTypeProperty",
"start":46,"end":57,"loc":{"start":{"line":5,"column":2,"index":46},"end":{"line":5,"column":13,"index":57}},
"key": {
"type": "Identifier",
"start":46,"end":49,"loc":{"start":{"line":5,"column":2,"index":46},"end":{"line":5,"column":5,"index":49},"identifierName":"bar"},
"name": "bar"
},
"static": false,
"proto": false,
"kind": "init",
"method": false,
"value": {
"type": "NumberTypeAnnotation",
"start":51,"end":57,"loc":{"start":{"line":5,"column":7,"index":51},"end":{"line":5,"column":13,"index":57}}
},
"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}}
}
]
}