mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
88 lines
3.2 KiB
JSON
88 lines
3.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":47}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":47}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"X"},
|
|
"name": "X"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":8,"end":10,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":10,"index":10}},
|
|
"body": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":11,"end":13,"loc":{"start":{"line":2,"column":0,"index":11},"end":{"line":2,"column":2,"index":13}},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"start":11,"end":13,"loc":{"start":{"line":2,"column":0,"index":11},"end":{"line":2,"column":2,"index":13}},
|
|
"extra": {
|
|
"rawValue": 5,
|
|
"raw": "05"
|
|
},
|
|
"value": 5
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":15,"end":44,"loc":{"start":{"line":4,"column":0,"index":15},"end":{"line":4,"column":29,"index":44}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":24,"end":25,"loc":{"start":{"line":4,"column":9,"index":24},"end":{"line":4,"column":10,"index":25},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":28,"end":44,"loc":{"start":{"line":4,"column":13,"index":28},"end":{"line":4,"column":29,"index":44}},
|
|
"body": [],
|
|
"directives": [
|
|
{
|
|
"type": "Directive",
|
|
"start":30,"end":42,"loc":{"start":{"line":4,"column":15,"index":30},"end":{"line":4,"column":27,"index":42}},
|
|
"value": {
|
|
"type": "DirectiveLiteral",
|
|
"start":30,"end":42,"loc":{"start":{"line":4,"column":15,"index":30},"end":{"line":4,"column":27,"index":42}},
|
|
"extra": {
|
|
"rawValue": "use strict",
|
|
"raw": "'use strict'",
|
|
"expressionValue": "use strict"
|
|
},
|
|
"value": "use strict"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":45,"end":47,"loc":{"start":{"line":5,"column":0,"index":45},"end":{"line":5,"column":2,"index":47}},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"start":45,"end":47,"loc":{"start":{"line":5,"column":0,"index":45},"end":{"line":5,"column":2,"index":47}},
|
|
"extra": {
|
|
"rawValue": 5,
|
|
"raw": "05"
|
|
},
|
|
"value": 5
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|