mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
81 lines
3.1 KiB
JSON
81 lines
3.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":121,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":121}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":121,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":121}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"start":36,"end":121,"loc":{"start":{"line":4,"column":0,"index":36},"end":{"line":10,"column":1,"index":121}},
|
|
"declaration": {
|
|
"type": "ClassDeclaration",
|
|
"start":51,"end":121,"loc":{"start":{"line":4,"column":15,"index":51},"end":{"line":10,"column":1,"index":121}},
|
|
"id": null,
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":57,"end":121,"loc":{"start":{"line":4,"column":21,"index":57},"end":{"line":10,"column":1,"index":121}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":103,"end":119,"loc":{"start":{"line":8,"column":4,"index":103},"end":{"line":9,"column":5,"index":119}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":103,"end":110,"loc":{"start":{"line":8,"column":4,"index":103},"end":{"line":8,"column":11,"index":110},"identifierName":"method1"},
|
|
"name": "method1"
|
|
},
|
|
"computed": false,
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":112,"end":119,"loc":{"start":{"line":8,"column":13,"index":112},"end":{"line":9,"column":5,"index":119}},
|
|
"body": [],
|
|
"directives": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * this is method1.\n ",
|
|
"start":63,"end":98,"loc":{"start":{"line":5,"column":4,"index":63},"end":{"line":7,"column":7,"index":98}}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * this is anonymous class.\n ",
|
|
"start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":3,"index":35}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * this is anonymous class.\n ",
|
|
"start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":3,"index":35}}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * this is method1.\n ",
|
|
"start":63,"end":98,"loc":{"start":{"line":5,"column":4,"index":63},"end":{"line":7,"column":7,"index":98}}
|
|
}
|
|
]
|
|
}
|