mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
131 lines
5.5 KiB
JSON
131 lines
5.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":22,"index":66}},
|
|
"errors": [
|
|
"SyntaxError: The left-hand side of a for-of loop may not start with 'let'. (1:5)",
|
|
"SyntaxError: The left-hand side of a for-of loop may not start with 'let'. (2:5)",
|
|
"SyntaxError: The left-hand side of a for-of loop may not start with 'let'. (3:5)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":22,"index":66}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
|
|
"await": false,
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start":5,"end":12,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":12,"index":12}},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8},"identifierName":"let"},
|
|
"name": "let"
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
|
|
"elements": []
|
|
},
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}}
|
|
}
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start":21,"end":43,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":22,"index":43}},
|
|
"await": false,
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start":26,"end":35,"loc":{"start":{"line":2,"column":5,"index":26},"end":{"line":2,"column":14,"index":35}},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start":26,"end":31,"loc":{"start":{"line":2,"column":5,"index":26},"end":{"line":2,"column":10,"index":31}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":26,"end":29,"loc":{"start":{"line":2,"column":5,"index":26},"end":{"line":2,"column":8,"index":29},"identifierName":"let"},
|
|
"name": "let"
|
|
},
|
|
"arguments": []
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":32,"end":35,"loc":{"start":{"line":2,"column":11,"index":32},"end":{"line":2,"column":14,"index":35},"identifierName":"bar"},
|
|
"name": "bar"
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start":39,"end":41,"loc":{"start":{"line":2,"column":18,"index":39},"end":{"line":2,"column":20,"index":41}},
|
|
"elements": []
|
|
},
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":42,"end":43,"loc":{"start":{"line":2,"column":21,"index":42},"end":{"line":2,"column":22,"index":43}}
|
|
}
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start":44,"end":66,"loc":{"start":{"line":3,"column":0,"index":44},"end":{"line":3,"column":22,"index":66}},
|
|
"await": false,
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start":49,"end":58,"loc":{"start":{"line":3,"column":5,"index":49},"end":{"line":3,"column":14,"index":58}},
|
|
"object": {
|
|
"type": "TaggedTemplateExpression",
|
|
"start":49,"end":54,"loc":{"start":{"line":3,"column":5,"index":49},"end":{"line":3,"column":10,"index":54}},
|
|
"tag": {
|
|
"type": "Identifier",
|
|
"start":49,"end":52,"loc":{"start":{"line":3,"column":5,"index":49},"end":{"line":3,"column":8,"index":52},"identifierName":"let"},
|
|
"name": "let"
|
|
},
|
|
"quasi": {
|
|
"type": "TemplateLiteral",
|
|
"start":52,"end":54,"loc":{"start":{"line":3,"column":8,"index":52},"end":{"line":3,"column":10,"index":54}},
|
|
"expressions": [],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"start":53,"end":53,"loc":{"start":{"line":3,"column":9,"index":53},"end":{"line":3,"column":9,"index":53}},
|
|
"value": {
|
|
"raw": "",
|
|
"cooked": ""
|
|
},
|
|
"tail": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":55,"end":58,"loc":{"start":{"line":3,"column":11,"index":55},"end":{"line":3,"column":14,"index":58},"identifierName":"bar"},
|
|
"name": "bar"
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start":62,"end":64,"loc":{"start":{"line":3,"column":18,"index":62},"end":{"line":3,"column":20,"index":64}},
|
|
"elements": []
|
|
},
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":65,"end":66,"loc":{"start":{"line":3,"column":21,"index":65},"end":{"line":3,"column":22,"index":66}}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|