{ "type": "Program", "statements": [ { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "getPropAccessor", "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 25 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "key", "loc": { "start": { "line": 17, "column": 26 }, "end": { "line": 17, "column": 29 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "test", "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 16 } } }, "arguments": [ { "type": "Identifier", "name": "key", "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 20 } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 21 } } }, "consequent": { "type": "TemplateLiteral", "expressions": [ { "type": "Identifier", "name": "key", "loc": { "start": { "line": 18, "column": 29 }, "end": { "line": 18, "column": 32 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": ".", "cooked": "." }, "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 27 } } }, { "type": "TemplateElement", "value": { "raw": "", "cooked": "" }, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 33 } } } ], "loc": { "start": { "line": 18, "column": 24 }, "end": { "line": 18, "column": 35 } } }, "alternate": { "type": "TemplateLiteral", "expressions": [ { "type": "CallExpression", "callee": { "type": "Identifier", "name": "escapeForJS", "loc": { "start": { "line": 18, "column": 43 }, "end": { "line": 18, "column": 54 } } }, "arguments": [ { "type": "Identifier", "name": "key", "loc": { "start": { "line": 18, "column": 55 }, "end": { "line": 18, "column": 58 } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 43 }, "end": { "line": 18, "column": 59 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "[", "cooked": "[" }, "loc": { "start": { "line": 18, "column": 40 }, "end": { "line": 18, "column": 41 } } }, { "type": "TemplateElement", "value": { "raw": "]", "cooked": "]" }, "loc": { "start": { "line": 18, "column": 60 }, "end": { "line": 18, "column": 61 } } } ], "loc": { "start": { "line": 18, "column": 38 }, "end": { "line": 18, "column": 63 } } }, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 63 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 64 } } } ], "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 19, "column": 2 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 20, "column": 1 } } }