|
1 | 1 | { |
2 | 2 | "type": "File", |
3 | | - "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":13,"index":26}}, |
| 3 | + "start":0,"end":79,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":23,"index":79}}, |
4 | 4 | "program": { |
5 | 5 | "type": "Program", |
6 | | - "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":13,"index":26}}, |
| 6 | + "start":0,"end":79,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":23,"index":79}}, |
7 | 7 | "sourceType": "script", |
8 | 8 | "interpreter": null, |
9 | 9 | "body": [ |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 | } |
| 93 | + }, |
| 94 | + { |
| 95 | + "type": "ExpressionStatement", |
| 96 | + "start":27,"end":55,"loc":{"start":{"line":3,"column":0,"index":27},"end":{"line":3,"column":28,"index":55}}, |
| 97 | + "expression": { |
| 98 | + "type": "ArrowFunctionExpression", |
| 99 | + "start":27,"end":54,"loc":{"start":{"line":3,"column":0,"index":27},"end":{"line":3,"column":27,"index":54}}, |
| 100 | + "id": null, |
| 101 | + "generator": false, |
| 102 | + "async": false, |
| 103 | + "params": [ |
| 104 | + { |
| 105 | + "type": "Identifier", |
| 106 | + "start":47,"end":48,"loc":{"start":{"line":3,"column":20,"index":47},"end":{"line":3,"column":21,"index":48},"identifierName":"x"}, |
| 107 | + "name": "x" |
| 108 | + } |
| 109 | + ], |
| 110 | + "body": { |
| 111 | + "type": "NumericLiteral", |
| 112 | + "start":53,"end":54,"loc":{"start":{"line":3,"column":26,"index":53},"end":{"line":3,"column":27,"index":54}}, |
| 113 | + "extra": { |
| 114 | + "rawValue": 1, |
| 115 | + "raw": "1" |
| 116 | + }, |
| 117 | + "value": 1 |
| 118 | + }, |
| 119 | + "typeParameters": { |
| 120 | + "type": "TSTypeParameterDeclaration", |
| 121 | + "start":27,"end":46,"loc":{"start":{"line":3,"column":0,"index":27},"end":{"line":3,"column":19,"index":46}}, |
| 122 | + "params": [ |
| 123 | + { |
| 124 | + "type": "TSTypeParameter", |
| 125 | + "start":28,"end":45,"loc":{"start":{"line":3,"column":1,"index":28},"end":{"line":3,"column":18,"index":45}}, |
| 126 | + "name": { |
| 127 | + "type": "Identifier", |
| 128 | + "start":28,"end":29,"loc":{"start":{"line":3,"column":1,"index":28},"end":{"line":3,"column":2,"index":29},"identifierName":"T"}, |
| 129 | + "name": "T" |
| 130 | + }, |
| 131 | + "constraint": { |
| 132 | + "type": "TSUnknownKeyword", |
| 133 | + "start":38,"end":45,"loc":{"start":{"line":3,"column":11,"index":38},"end":{"line":3,"column":18,"index":45}} |
| 134 | + } |
| 135 | + } |
| 136 | + ] |
| 137 | + } |
| 138 | + } |
| 139 | + }, |
| 140 | + { |
| 141 | + "type": "ExpressionStatement", |
| 142 | + "start":56,"end":79,"loc":{"start":{"line":4,"column":0,"index":56},"end":{"line":4,"column":23,"index":79}}, |
| 143 | + "expression": { |
| 144 | + "type": "ArrowFunctionExpression", |
| 145 | + "start":56,"end":78,"loc":{"start":{"line":4,"column":0,"index":56},"end":{"line":4,"column":22,"index":78}}, |
| 146 | + "id": null, |
| 147 | + "generator": false, |
| 148 | + "async": false, |
| 149 | + "params": [ |
| 150 | + { |
| 151 | + "type": "Identifier", |
| 152 | + "start":71,"end":72,"loc":{"start":{"line":4,"column":15,"index":71},"end":{"line":4,"column":16,"index":72},"identifierName":"x"}, |
| 153 | + "name": "x" |
| 154 | + } |
| 155 | + ], |
| 156 | + "body": { |
| 157 | + "type": "NumericLiteral", |
| 158 | + "start":77,"end":78,"loc":{"start":{"line":4,"column":21,"index":77},"end":{"line":4,"column":22,"index":78}}, |
| 159 | + "extra": { |
| 160 | + "rawValue": 1, |
| 161 | + "raw": "1" |
| 162 | + }, |
| 163 | + "value": 1 |
| 164 | + }, |
| 165 | + "typeParameters": { |
| 166 | + "type": "TSTypeParameterDeclaration", |
| 167 | + "start":56,"end":70,"loc":{"start":{"line":4,"column":0,"index":56},"end":{"line":4,"column":14,"index":70}}, |
| 168 | + "params": [ |
| 169 | + { |
| 170 | + "type": "TSTypeParameter", |
| 171 | + "start":57,"end":68,"loc":{"start":{"line":4,"column":1,"index":57},"end":{"line":4,"column":12,"index":68}}, |
| 172 | + "name": { |
| 173 | + "type": "Identifier", |
| 174 | + "start":57,"end":58,"loc":{"start":{"line":4,"column":1,"index":57},"end":{"line":4,"column":2,"index":58},"identifierName":"T"}, |
| 175 | + "name": "T" |
| 176 | + }, |
| 177 | + "default": { |
| 178 | + "type": "TSUnknownKeyword", |
| 179 | + "start":61,"end":68,"loc":{"start":{"line":4,"column":5,"index":61},"end":{"line":4,"column":12,"index":68}} |
| 180 | + } |
| 181 | + } |
| 182 | + ], |
| 183 | + "extra": { |
| 184 | + "trailingComma": 68 |
| 185 | + } |
| 186 | + } |
| 187 | + } |
93 | 188 | } |
94 | 189 | ], |
95 | 190 | "directives": [] |
|
0 commit comments