71 lines
2.6 KiB
JSON
71 lines
2.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
|
|
"errors": [
|
|
"SyntaxError: for-of loop variable declaration may not have an initializer (1:5)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
|
|
"await": false,
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"start":5,"end":15,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":15}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":9,"end":15,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":15}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":13,"end":15,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":15}},
|
|
"extra": {
|
|
"rawValue": 42,
|
|
"raw": "42"
|
|
},
|
|
"value": 42
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":19,"end":23,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":23},"identifierName":"list"},
|
|
"name": "list"
|
|
},
|
|
"body": {
|
|
"type": "ExpressionStatement",
|
|
"start":25,"end":36,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":36}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":25,"end":35,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":35}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32},"identifierName":"process"},
|
|
"name": "process"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":33,"end":34,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":34},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |