| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":18,"index":59}}, |
| 4 | "program": { |
| 5 | "type": "Program", |
| 6 | "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":18,"index":59}}, |
| 7 | "sourceType": "module", |
| 8 | "interpreter": null, |
| 9 | "body": [ |
| 10 | { |
| 11 | "type": "ClassDeclaration", |
| 12 | "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}}, |
| 13 | "id": { |
| 14 | "type": "Identifier", |
| 15 | "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"}, |
| 16 | "name": "C" |
| 17 | }, |
| 18 | "typeParameters": { |
| 19 | "type": "TypeParameterDeclaration", |
| 20 | "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}}, |
| 21 | "params": [ |
| 22 | { |
| 23 | "type": "TypeParameter", |
| 24 | "start":8,"end":10,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":10,"index":10}}, |
| 25 | "name": "T", |
| 26 | "variance": { |
| 27 | "type": "Variance", |
| 28 | "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}}, |
| 29 | "kind": "plus" |
| 30 | } |
| 31 | }, |
| 32 | { |
| 33 | "type": "TypeParameter", |
| 34 | "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13}}, |
| 35 | "name": "U", |
| 36 | "variance": { |
| 37 | "type": "Variance", |
| 38 | "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12}}, |
| 39 | "kind": "minus" |
| 40 | } |
| 41 | } |
| 42 | ] |
| 43 | }, |
| 44 | "superClass": null, |
| 45 | "body": { |
| 46 | "type": "ClassBody", |
| 47 | "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17}}, |
| 48 | "body": [] |
| 49 | } |
| 50 | }, |
| 51 | { |
| 52 | "type": "FunctionDeclaration", |
| 53 | "start":18,"end":40,"loc":{"start":{"line":2,"column":0,"index":18},"end":{"line":2,"column":22,"index":40}}, |
| 54 | "id": { |
| 55 | "type": "Identifier", |
| 56 | "start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28},"identifierName":"f"}, |
| 57 | "name": "f" |
| 58 | }, |
| 59 | "generator": false, |
| 60 | "async": false, |
| 61 | "typeParameters": { |
| 62 | "type": "TypeParameterDeclaration", |
| 63 | "start":28,"end":35,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":17,"index":35}}, |
| 64 | "params": [ |
| 65 | { |
| 66 | "type": "TypeParameter", |
| 67 | "start":29,"end":31,"loc":{"start":{"line":2,"column":11,"index":29},"end":{"line":2,"column":13,"index":31}}, |
| 68 | "name": "T", |
| 69 | "variance": { |
| 70 | "type": "Variance", |
| 71 | "start":29,"end":30,"loc":{"start":{"line":2,"column":11,"index":29},"end":{"line":2,"column":12,"index":30}}, |
| 72 | "kind": "plus" |
| 73 | } |
| 74 | }, |
| 75 | { |
| 76 | "type": "TypeParameter", |
| 77 | "start":32,"end":34,"loc":{"start":{"line":2,"column":14,"index":32},"end":{"line":2,"column":16,"index":34}}, |
| 78 | "name": "U", |
| 79 | "variance": { |
| 80 | "type": "Variance", |
| 81 | "start":32,"end":33,"loc":{"start":{"line":2,"column":14,"index":32},"end":{"line":2,"column":15,"index":33}}, |
| 82 | "kind": "minus" |
| 83 | } |
| 84 | } |
| 85 | ] |
| 86 | }, |
| 87 | "params": [], |
| 88 | "body": { |
| 89 | "type": "BlockStatement", |
| 90 | "start":38,"end":40,"loc":{"start":{"line":2,"column":20,"index":38},"end":{"line":2,"column":22,"index":40}}, |
| 91 | "body": [], |
| 92 | "directives": [] |
| 93 | } |
| 94 | }, |
| 95 | { |
| 96 | "type": "TypeAlias", |
| 97 | "start":41,"end":59,"loc":{"start":{"line":3,"column":0,"index":41},"end":{"line":3,"column":18,"index":59}}, |
| 98 | "id": { |
| 99 | "type": "Identifier", |
| 100 | "start":46,"end":47,"loc":{"start":{"line":3,"column":5,"index":46},"end":{"line":3,"column":6,"index":47},"identifierName":"T"}, |
| 101 | "name": "T" |
| 102 | }, |
| 103 | "typeParameters": { |
| 104 | "type": "TypeParameterDeclaration", |
| 105 | "start":47,"end":54,"loc":{"start":{"line":3,"column":6,"index":47},"end":{"line":3,"column":13,"index":54}}, |
| 106 | "params": [ |
| 107 | { |
| 108 | "type": "TypeParameter", |
| 109 | "start":48,"end":50,"loc":{"start":{"line":3,"column":7,"index":48},"end":{"line":3,"column":9,"index":50}}, |
| 110 | "name": "T", |
| 111 | "variance": { |
| 112 | "type": "Variance", |
| 113 | "start":48,"end":49,"loc":{"start":{"line":3,"column":7,"index":48},"end":{"line":3,"column":8,"index":49}}, |
| 114 | "kind": "plus" |
| 115 | } |
| 116 | }, |
| 117 | { |
| 118 | "type": "TypeParameter", |
| 119 | "start":51,"end":53,"loc":{"start":{"line":3,"column":10,"index":51},"end":{"line":3,"column":12,"index":53}}, |
| 120 | "name": "U", |
| 121 | "variance": { |
| 122 | "type": "Variance", |
| 123 | "start":51,"end":52,"loc":{"start":{"line":3,"column":10,"index":51},"end":{"line":3,"column":11,"index":52}}, |
| 124 | "kind": "minus" |
| 125 | } |
| 126 | } |
| 127 | ] |
| 128 | }, |
| 129 | "right": { |
| 130 | "type": "ObjectTypeAnnotation", |
| 131 | "start":57,"end":59,"loc":{"start":{"line":3,"column":16,"index":57},"end":{"line":3,"column":18,"index":59}}, |
| 132 | "callProperties": [], |
| 133 | "properties": [], |
| 134 | "indexers": [], |
| 135 | "internalSlots": [], |
| 136 | "exact": false, |
| 137 | "inexact": false |
| 138 | } |
| 139 | } |
| 140 | ], |
| 141 | "directives": [] |
| 142 | } |
| 143 | } |