mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
133 lines
6.7 KiB
JSON
133 lines
6.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":77}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":77}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":77}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":76,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":5,"column":1,"index":76}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "DoExpression",
|
|
"start":8,"end":76,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":5,"column":1,"index":76}},
|
|
"async": false,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":11,"end":76,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":5,"column":1,"index":76}},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start":15,"end":74,"loc":{"start":{"line":2,"column":2,"index":15},"end":{"line":4,"column":14,"index":74}},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start":19,"end":24,"loc":{"start":{"line":2,"column":6,"index":19},"end":{"line":2,"column":11,"index":24}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":19,"end":22,"loc":{"start":{"line":2,"column":6,"index":19},"end":{"line":2,"column":9,"index":22},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"arguments": []
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start":26,"end":33,"loc":{"start":{"line":2,"column":13,"index":26},"end":{"line":2,"column":20,"index":33}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":28,"end":31,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":18,"index":31}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":28,"end":31,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":18,"index":31}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":28,"end":29,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":16,"index":29},"identifierName":"f"},
|
|
"name": "f"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"start":41,"end":74,"loc":{"start":{"line":3,"column":7,"index":41},"end":{"line":4,"column":14,"index":74}},
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"start":45,"end":50,"loc":{"start":{"line":3,"column":11,"index":45},"end":{"line":3,"column":16,"index":50}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":45,"end":48,"loc":{"start":{"line":3,"column":11,"index":45},"end":{"line":3,"column":14,"index":48},"identifierName":"bar"},
|
|
"name": "bar"
|
|
},
|
|
"arguments": []
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start":52,"end":59,"loc":{"start":{"line":3,"column":18,"index":52},"end":{"line":3,"column":25,"index":59}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":54,"end":57,"loc":{"start":{"line":3,"column":20,"index":54},"end":{"line":3,"column":23,"index":57}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":54,"end":57,"loc":{"start":{"line":3,"column":20,"index":54},"end":{"line":3,"column":23,"index":57}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":54,"end":55,"loc":{"start":{"line":3,"column":20,"index":54},"end":{"line":3,"column":21,"index":55},"identifierName":"g"},
|
|
"name": "g"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"start":67,"end":74,"loc":{"start":{"line":4,"column":7,"index":67},"end":{"line":4,"column":14,"index":74}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":69,"end":72,"loc":{"start":{"line":4,"column":9,"index":69},"end":{"line":4,"column":12,"index":72}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":69,"end":72,"loc":{"start":{"line":4,"column":9,"index":69},"end":{"line":4,"column":12,"index":72}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":69,"end":70,"loc":{"start":{"line":4,"column":9,"index":69},"end":{"line":4,"column":10,"index":70},"identifierName":"h"},
|
|
"name": "h"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|