{ "type": "Program", "statements": [ { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "getProperty", "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 21 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "obj", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "out", "loc": { "start": { "line": 16, "column": 55 }, "end": { "line": 16, "column": 58 } } }, "loc": { "start": { "line": 16, "column": 55 }, "end": { "line": 16, "column": 58 } } }, "loc": { "start": { "line": 16, "column": 50 }, "end": { "line": 16, "column": 53 } } }, { "type": "Identifier", "name": "key", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Key", "loc": { "start": { "line": 16, "column": 65 }, "end": { "line": 16, "column": 68 } } }, "loc": { "start": { "line": 16, "column": 65 }, "end": { "line": 16, "column": 68 } } }, "loc": { "start": { "line": 16, "column": 60 }, "end": { "line": 16, "column": 63 } } } ], "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "out", "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 25 } } }, "in": false, "out": false, "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 26 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "Key", "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 30 } } }, "constraint": { "type": "TSTypeOperator", "operator": "keyof", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "out", "loc": { "start": { "line": 16, "column": 45 }, "end": { "line": 16, "column": 48 } } }, "loc": { "start": { "line": 16, "column": 45 }, "end": { "line": 16, "column": 48 } } }, "loc": { "start": { "line": 16, "column": 39 }, "end": { "line": 16, "column": 48 } } }, "in": false, "out": false, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 49 } } } ], "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 49 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "obj", "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "property": { "type": "Identifier", "name": "key", "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 19 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 20 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 21 } } } ], "loc": { "start": { "line": 16, "column": 70 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 18, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 18, "column": 2 } } }