mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
61 lines
2.5 KiB
JSON
61 lines
2.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":46,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":46}},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start":20,"end":44,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":26,"index":44}},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"start":24,"end":28,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":10,"index":28}},
|
|
"value": true
|
|
},
|
|
"consequent": {
|
|
"type": "ExpressionStatement",
|
|
"start":30,"end":44,"loc":{"start":{"line":2,"column":12,"index":30},"end":{"line":2,"column":26,"index":44}},
|
|
"expression": {
|
|
"type": "MetaProperty",
|
|
"start":30,"end":43,"loc":{"start":{"line":2,"column":12,"index":30},"end":{"line":2,"column":25,"index":43}},
|
|
"meta": {
|
|
"type": "Identifier",
|
|
"start":30,"end":38,"loc":{"start":{"line":2,"column":12,"index":30},"end":{"line":2,"column":20,"index":38},"identifierName":"function"},
|
|
"name": "function"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":39,"end":43,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":25,"index":43},"identifierName":"sent"},
|
|
"name": "sent"
|
|
}
|
|
}
|
|
},
|
|
"alternate": null
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|