mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
62 lines
2.4 KiB
JSON
62 lines
2.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13},"identifierName":"test"},
|
|
"name": "test"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":38,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":38}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":20,"end":36,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":18,"index":36}},
|
|
"expression": {
|
|
"type": "LogicalExpression",
|
|
"start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35}},
|
|
"left": {
|
|
"type": "BooleanLiteral",
|
|
"start":20,"end":24,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":6,"index":24}},
|
|
"value": true
|
|
},
|
|
"operator": "&&",
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"start":28,"end":35,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":17,"index":35}},
|
|
"operator": "throw",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start":34,"end":35,"loc":{"start":{"line":2,"column":16,"index":34},"end":{"line":2,"column":17,"index":35}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|