{ "type": "Script", "span": { "start": 15, "end": 135, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 15, "end": 40, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19, "end": 28, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19, "end": 20, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 20, "end": 28, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 22, "end": 28, "ctxt": 0 }, "kind": "string" } } }, "init": null, "definite": false }, { "type": "VariableDeclarator", "span": { "start": 30, "end": 39, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 30, "end": 31, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 31, "end": 39, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 33, "end": 39, "ctxt": 0 }, "kind": "number" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 41, "end": 73, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 45, "end": 73, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 45, "end": 50, "ctxt": 0 }, "value": "array", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrayExpression", "span": { "start": 53, "end": 73, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "ObjectExpression", "span": { "start": 54, "end": 72, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 56, "end": 57, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 59, "end": 61, "ctxt": 0 }, "value": "", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 63, "end": 64, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "BooleanLiteral", "span": { "start": 66, "end": 70, "ctxt": 0 }, "value": true } } ] } } ] }, "definite": false } ] }, { "type": "TsEnumDeclaration", "span": { "start": 74, "end": 86, "ctxt": 0 }, "declare": false, "isConst": false, "id": { "type": "Identifier", "span": { "start": 79, "end": 80, "ctxt": 0 }, "value": "E", "optional": false }, "members": [ { "type": "TsEnumMember", "span": { "start": 83, "end": 84, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 83, "end": 84, "ctxt": 0 }, "value": "x", "optional": false }, "init": null } ] }, { "type": "ForOfStatement", "span": { "start": 87, "end": 135, "ctxt": 0 }, "await": null, "left": { "type": "ObjectPattern", "span": { "start": 92, "end": 107, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 93, "end": 94, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 93, "end": 94, "ctxt": 0 }, "value": "x", "optional": false }, "value": null }, { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 96, "end": 97, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "AssignmentPattern", "span": { "start": 99, "end": 106, "ctxt": 0 }, "left": { "type": "Identifier", "span": { "start": 99, "end": 100, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 103, "end": 106, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 103, "end": 104, "ctxt": 0 }, "value": "E", "optional": false }, "property": { "type": "Identifier", "span": { "start": 105, "end": 106, "ctxt": 0 }, "value": "x", "optional": false } }, "typeAnnotation": null } } ], "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 111, "end": 116, "ctxt": 0 }, "value": "array", "optional": false }, "body": { "type": "BlockStatement", "span": { "start": 118, "end": 135, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 124, "end": 126, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 124, "end": 125, "ctxt": 0 }, "value": "x", "optional": false } }, { "type": "ExpressionStatement", "span": { "start": 131, "end": 133, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 131, "end": 132, "ctxt": 0 }, "value": "y", "optional": false } } ] } } ], "interpreter": null }