Files

100 lines
4.1 KiB
JSON

{
"type": "File",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":26,"index":50}},
"program": {
"type": "Program",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":26,"index":50}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ForOfStatement",
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
"await": false,
"left": {
"type": "VariableDeclaration",
"start":5,"end":10,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":10,"index":10}},
"declarations": [
{
"type": "VariableDeclarator",
"start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
"id": {
"type": "Identifier",
"start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
"name": "x"
},
"init": null
}
],
"kind": "var"
},
"right": {
"type": "RegExpLiteral",
"start":14,"end":20,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":20,"index":20}},
"extra": {
"raw": "/foo/g"
},
"pattern": "foo",
"flags": "g"
},
"body": {
"type": "EmptyStatement",
"start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22}}
}
},
{
"type": "ForStatement",
"start":24,"end":50,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":26,"index":50}},
"init": {
"type": "VariableDeclaration",
"start":29,"end":46,"loc":{"start":{"line":3,"column":5,"index":29},"end":{"line":3,"column":22,"index":46}},
"declarations": [
{
"type": "VariableDeclarator",
"start":33,"end":46,"loc":{"start":{"line":3,"column":9,"index":33},"end":{"line":3,"column":22,"index":46}},
"id": {
"type": "Identifier",
"start":33,"end":34,"loc":{"start":{"line":3,"column":9,"index":33},"end":{"line":3,"column":10,"index":34},"identifierName":"x"},
"name": "x"
},
"init": {
"type": "BinaryExpression",
"start":37,"end":46,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":22,"index":46}},
"left": {
"type": "BinaryExpression",
"start":37,"end":44,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":20,"index":44}},
"left": {
"type": "Identifier",
"start":37,"end":39,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":15,"index":39},"identifierName":"of"},
"name": "of"
},
"operator": "/",
"right": {
"type": "Identifier",
"start":41,"end":44,"loc":{"start":{"line":3,"column":17,"index":41},"end":{"line":3,"column":20,"index":44},"identifierName":"foo"},
"name": "foo"
}
},
"operator": "/",
"right": {
"type": "Identifier",
"start":45,"end":46,"loc":{"start":{"line":3,"column":21,"index":45},"end":{"line":3,"column":22,"index":46},"identifierName":"g"},
"name": "g"
}
}
}
],
"kind": "var"
},
"test": null,
"update": null,
"body": {
"type": "EmptyStatement",
"start":49,"end":50,"loc":{"start":{"line":3,"column":25,"index":49},"end":{"line":3,"column":26,"index":50}}
}
}
],
"directives": []
}
}