/
output.json
52 lines (52 loc) 路 2.03 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
{
"type": "File",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"errors": [
"SyntaxError: Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p). (2:3)"
],
"program": {
"type": "Program",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "TSInterfaceDeclaration",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"id": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"I"},
"name": "I"
},
"body": {
"type": "TSInterfaceBody",
"start":12,"end":28,"loc":{"start":{"line":1,"column":12},"end":{"line":3,"column":1}},
"body": [
{
"type": "TSPropertySignature",
"start":16,"end":26,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":12}},
"key": {
"type": "PrivateName",
"start":16,"end":18,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":4}},
"id": {
"type": "Identifier",
"start":17,"end":18,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":4},"identifierName":"p"},
"name": "p"
}
},
"typeAnnotation": {
"type": "TSTypeAnnotation",
"start":18,"end":26,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":12}},
"typeAnnotation": {
"type": "TSStringKeyword",
"start":20,"end":26,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":12}}
}
}
}
]
}
}
],
"directives": []
}
}