mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
117 lines
5.0 KiB
JSON
117 lines
5.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":41,"index":73}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":41,"index":73}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"Foo"},
|
|
"name": "Foo"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "MetaProperty",
|
|
"start":17,"end":27,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":27,"index":27}},
|
|
"meta": {
|
|
"type": "Identifier",
|
|
"start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20},"identifierName":"new"},
|
|
"name": "new"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":21,"end":27,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":27,"index":27},"identifierName":"target"},
|
|
"name": "target"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":29,"end":31,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":31,"index":31}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":32,"end":73,"loc":{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":41,"index":73}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":41,"end":44,"loc":{"start":{"line":2,"column":9,"index":41},"end":{"line":2,"column":12,"index":44},"identifierName":"Bar"},
|
|
"name": "Bar"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":47,"end":73,"loc":{"start":{"line":2,"column":15,"index":47},"end":{"line":2,"column":41,"index":73}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":49,"end":71,"loc":{"start":{"line":2,"column":17,"index":49},"end":{"line":2,"column":39,"index":71}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":49,"end":71,"loc":{"start":{"line":2,"column":17,"index":49},"end":{"line":2,"column":39,"index":71}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":50,"end":64,"loc":{"start":{"line":2,"column":18,"index":50},"end":{"line":2,"column":32,"index":64}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":50,"end":51,"loc":{"start":{"line":2,"column":18,"index":50},"end":{"line":2,"column":19,"index":51},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "MetaProperty",
|
|
"start":54,"end":64,"loc":{"start":{"line":2,"column":22,"index":54},"end":{"line":2,"column":32,"index":64}},
|
|
"meta": {
|
|
"type": "Identifier",
|
|
"start":54,"end":57,"loc":{"start":{"line":2,"column":22,"index":54},"end":{"line":2,"column":25,"index":57},"identifierName":"new"},
|
|
"name": "new"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":58,"end":64,"loc":{"start":{"line":2,"column":26,"index":58},"end":{"line":2,"column":32,"index":64},"identifierName":"target"},
|
|
"name": "target"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":69,"end":71,"loc":{"start":{"line":2,"column":37,"index":69},"end":{"line":2,"column":39,"index":71}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|