mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
87 lines
3.6 KiB
JSON
87 lines
3.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":3,"index":56}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":3,"index":56}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":3,"index":56}},
|
|
"expression": {
|
|
"type": "FunctionExpression",
|
|
"start":1,"end":54,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":4,"column":1,"index":54}},
|
|
"id": null,
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":14,"end":54,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":4,"column":1,"index":54}},
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":18,"end":43,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":27,"index":43}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":27,"end":28,"loc":{"start":{"line":2,"column":11,"index":27},"end":{"line":2,"column":12,"index":28},"identifierName":"f"},
|
|
"name": "f"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":29,"end":39,"loc":{"start":{"line":2,"column":13,"index":29},"end":{"line":2,"column":23,"index":39}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":29,"end":30,"loc":{"start":{"line":2,"column":13,"index":29},"end":{"line":2,"column":14,"index":30},"identifierName":"_"},
|
|
"name": "_"
|
|
},
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":31,"end":39,"loc":{"start":{"line":2,"column":15,"index":31},"end":{"line":2,"column":23,"index":39}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "NullLiteral",
|
|
"start":35,"end":39,"loc":{"start":{"line":2,"column":19,"index":35},"end":{"line":2,"column":23,"index":39}}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":41,"end":43,"loc":{"start":{"line":2,"column":25,"index":41},"end":{"line":2,"column":27,"index":43}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":46,"end":52,"loc":{"start":{"line":3,"column":2,"index":46},"end":{"line":3,"column":8,"index":52}},
|
|
"expression": {
|
|
"type": "YieldExpression",
|
|
"start":46,"end":51,"loc":{"start":{"line":3,"column":2,"index":46},"end":{"line":3,"column":7,"index":51}},
|
|
"delegate": false,
|
|
"argument": null
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|