mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* fix: module block program should span within {}
* adapt to startNodeAt usage
93 lines
3.8 KiB
JSON
93 lines
3.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":61}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":61}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":17,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":17,"index":17}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":12,"end":17,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":17,"index":17}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":19,"end":61,"loc":{"start":{"line":2,"column":0,"index":19},"end":{"line":4,"column":2,"index":61}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":25,"end":60,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":4,"column":1,"index":60}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":25,"end":26,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":2,"column":7,"index":26},"identifierName":"m"},
|
|
"name": "m"
|
|
},
|
|
"init": {
|
|
"type": "ModuleExpression",
|
|
"start":29,"end":60,"loc":{"start":{"line":2,"column":10,"index":29},"end":{"line":4,"column":1,"index":60}},
|
|
"body": {
|
|
"type": "Program",
|
|
"start":37,"end":59,"loc":{"start":{"line":2,"column":18,"index":37},"end":{"line":4,"column":0,"index":59}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":40,"end":58,"loc":{"start":{"line":3,"column":2,"index":40},"end":{"line":3,"column":20,"index":58}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":46,"end":57,"loc":{"start":{"line":3,"column":8,"index":46},"end":{"line":3,"column":19,"index":57}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":46,"end":49,"loc":{"start":{"line":3,"column":8,"index":46},"end":{"line":3,"column":11,"index":49},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":52,"end":57,"loc":{"start":{"line":3,"column":14,"index":52},"end":{"line":3,"column":19,"index":57}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|