-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.json
77 lines (77 loc) 路 3.24 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
{
"type": "File",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":34}},
"errors": [
"SyntaxError: Decorators cannot be used to decorate parameters. (2:9)"
],
"program": {
"type": "Program",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":34}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":34}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":33,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":3,"column":1,"index":33}},
"id": {
"type": "Identifier",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"obj"},
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"start":10,"end":33,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":33}},
"properties": [
{
"type": "ObjectMethod",
"start":14,"end":31,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":19,"index":31}},
"method": true,
"key": {
"type": "Identifier",
"start":14,"end":20,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":8,"index":20},"identifierName":"method"},
"name": "method"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":26,"end":27,"loc":{"start":{"line":2,"column":14,"index":26},"end":{"line":2,"column":15,"index":27},"identifierName":"x"},
"name": "x",
"decorators": [
{
"type": "Decorator",
"start":21,"end":25,"loc":{"start":{"line":2,"column":9,"index":21},"end":{"line":2,"column":13,"index":25}},
"expression": {
"type": "Identifier",
"start":22,"end":25,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":13,"index":25},"identifierName":"foo"},
"name": "foo"
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":29,"end":31,"loc":{"start":{"line":2,"column":17,"index":29},"end":{"line":2,"column":19,"index":31}},
"body": [],
"directives": []
}
}
]
}
}
],
"kind": "var"
}
],
"directives": []
}
}