mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
184 lines
8.1 KiB
JSON
184 lines
8.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":99,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":99}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":99,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":99}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":49}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11},"identifierName":"f1"},
|
|
"name": "f1"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":14,"end":49,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":49}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":18,"end":30,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":14,"index":30}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":18,"end":30,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":14,"index":30}},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start":18,"end":27,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":11,"index":27}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":18,"end":23,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":7,"index":23},"identifierName":"yield"},
|
|
"name": "yield"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":26,"end":27,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":2,"column":11,"index":27}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":29,"end":30,"loc":{"start":{"line":2,"column":13,"index":29},"end":{"line":2,"column":14,"index":30},"identifierName":"g"},
|
|
"name": "g"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":33,"end":47,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":4,"column":8,"index":47}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":33,"end":47,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":4,"column":8,"index":47}},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start":33,"end":44,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":4,"column":5,"index":44}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":33,"end":38,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":7,"index":38},"identifierName":"yield"},
|
|
"name": "yield"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":43,"end":44,"loc":{"start":{"line":4,"column":4,"index":43},"end":{"line":4,"column":5,"index":44}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":46,"end":47,"loc":{"start":{"line":4,"column":7,"index":46},"end":{"line":4,"column":8,"index":47},"identifierName":"g"},
|
|
"name": "g"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":50,"end":99,"loc":{"start":{"line":6,"column":0,"index":50},"end":{"line":10,"column":1,"index":99}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":59,"end":61,"loc":{"start":{"line":6,"column":9,"index":59},"end":{"line":6,"column":11,"index":61},"identifierName":"f2"},
|
|
"name": "f2"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":64,"end":99,"loc":{"start":{"line":6,"column":14,"index":64},"end":{"line":10,"column":1,"index":99}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":68,"end":80,"loc":{"start":{"line":7,"column":2,"index":68},"end":{"line":7,"column":14,"index":80}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":68,"end":80,"loc":{"start":{"line":7,"column":2,"index":68},"end":{"line":7,"column":14,"index":80}},
|
|
"operator": "/=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":68,"end":73,"loc":{"start":{"line":7,"column":2,"index":68},"end":{"line":7,"column":7,"index":73},"identifierName":"yield"},
|
|
"name": "yield"
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start":76,"end":80,"loc":{"start":{"line":7,"column":10,"index":76},"end":{"line":7,"column":14,"index":80}},
|
|
"left": {
|
|
"type": "NumericLiteral",
|
|
"start":76,"end":77,"loc":{"start":{"line":7,"column":10,"index":76},"end":{"line":7,"column":11,"index":77}},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":79,"end":80,"loc":{"start":{"line":7,"column":13,"index":79},"end":{"line":7,"column":14,"index":80},"identifierName":"i"},
|
|
"name": "i"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":83,"end":97,"loc":{"start":{"line":8,"column":2,"index":83},"end":{"line":9,"column":8,"index":97}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":83,"end":97,"loc":{"start":{"line":8,"column":2,"index":83},"end":{"line":9,"column":8,"index":97}},
|
|
"operator": "/=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":83,"end":88,"loc":{"start":{"line":8,"column":2,"index":83},"end":{"line":8,"column":7,"index":88},"identifierName":"yield"},
|
|
"name": "yield"
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start":93,"end":97,"loc":{"start":{"line":9,"column":4,"index":93},"end":{"line":9,"column":8,"index":97}},
|
|
"left": {
|
|
"type": "NumericLiteral",
|
|
"start":93,"end":94,"loc":{"start":{"line":9,"column":4,"index":93},"end":{"line":9,"column":5,"index":94}},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":96,"end":97,"loc":{"start":{"line":9,"column":7,"index":96},"end":{"line":9,"column":8,"index":97},"identifierName":"i"},
|
|
"name": "i"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|