forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 3
/
output.json
95 lines (95 loc) 路 3.65 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
91
92
93
94
95
{
"type": "File",
"start":0,"end":100,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}},
"errors": [
"SyntaxError: Unexpected reserved word 'yield'. (4:8)"
],
"program": {
"type": "Program",
"start":0,"end":100,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":100,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}},
"id": {
"type": "Identifier",
"start":10,"end":13,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":13},"identifierName":"foo"},
"name": "foo"
},
"generator": true,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":16,"end":100,"loc":{"start":{"line":1,"column":16},"end":{"line":6,"column":1}},
"body": [
{
"type": "ClassDeclaration",
"start":20,"end":98,"loc":{"start":{"line":2,"column":2},"end":{"line":5,"column":3}},
"id": {
"type": "Identifier",
"start":26,"end":27,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":9},"identifierName":"C"},
"name": "C"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":28,"end":98,"loc":{"start":{"line":2,"column":10},"end":{"line":5,"column":3}},
"body": [
{
"type": "ClassProperty",
"start":79,"end":94,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":19}},
"leadingComments": [
{
"type": "CommentLine",
"value": " here yield is an identifier reference",
"start":34,"end":74,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":44}}
}
],
"static": false,
"key": {
"type": "Identifier",
"start":79,"end":80,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":5},"identifierName":"p"},
"name": "p"
},
"computed": false,
"value": {
"type": "BinaryExpression",
"start":83,"end":93,"loc":{"start":{"line":4,"column":8},"end":{"line":4,"column":18}},
"left": {
"type": "Identifier",
"start":83,"end":88,"loc":{"start":{"line":4,"column":8},"end":{"line":4,"column":13},"identifierName":"yield"},
"name": "yield"
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start":91,"end":93,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":18}},
"extra": {
"rawValue": 42,
"raw": "42"
},
"value": 42
}
}
}
]
}
}
],
"directives": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " here yield is an identifier reference",
"start":34,"end":74,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":44}}
}
]
}