• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "VariableDeclaration",
6      "declarations": [
7        {
8          "type": "VariableDeclarator",
9          "id": {
10            "type": "Identifier",
11            "name": "a",
12            "typeAnnotation": {
13              "type": "TSTypeLiteral",
14              "members": [
15                {
16                  "type": "TSPropertySignature",
17                  "computed": false,
18                  "optional": false,
19                  "readonly": true,
20                  "key": {
21                    "type": "Identifier",
22                    "name": "b",
23                    "decorators": [],
24                    "loc": {
25                      "start": {
26                        "line": 17,
27                        "column": 18
28                      },
29                      "end": {
30                        "line": 17,
31                        "column": 19
32                      }
33                    }
34                  },
35                  "typeAnnotation": {
36                    "type": "TSTypeLiteral",
37                    "members": [
38                      {
39                        "type": "TSPropertySignature",
40                        "computed": false,
41                        "optional": false,
42                        "readonly": true,
43                        "key": {
44                          "type": "Identifier",
45                          "name": "c",
46                          "decorators": [],
47                          "loc": {
48                            "start": {
49                              "line": 17,
50                              "column": 31
51                            },
52                            "end": {
53                              "line": 17,
54                              "column": 32
55                            }
56                          }
57                        },
58                        "typeAnnotation": {
59                          "type": "TSNumberKeyword",
60                          "loc": {
61                            "start": {
62                              "line": 17,
63                              "column": 34
64                            },
65                            "end": {
66                              "line": 17,
67                              "column": 40
68                            }
69                          }
70                        },
71                        "loc": {
72                          "start": {
73                            "line": 17,
74                            "column": 22
75                          },
76                          "end": {
77                            "line": 17,
78                            "column": 41
79                          }
80                        }
81                      }
82                    ],
83                    "loc": {
84                      "start": {
85                        "line": 17,
86                        "column": 21
87                      },
88                      "end": {
89                        "line": 17,
90                        "column": 41
91                      }
92                    }
93                  },
94                  "loc": {
95                    "start": {
96                      "line": 17,
97                      "column": 9
98                    },
99                    "end": {
100                      "line": 17,
101                      "column": 42
102                    }
103                  }
104                }
105              ],
106              "loc": {
107                "start": {
108                  "line": 17,
109                  "column": 8
110                },
111                "end": {
112                  "line": 17,
113                  "column": 42
114                }
115              }
116            },
117            "decorators": [],
118            "loc": {
119              "start": {
120                "line": 17,
121                "column": 5
122              },
123              "end": {
124                "line": 17,
125                "column": 6
126              }
127            }
128          },
129          "init": null,
130          "loc": {
131            "start": {
132              "line": 17,
133              "column": 5
134            },
135            "end": {
136              "line": 17,
137              "column": 6
138            }
139          }
140        }
141      ],
142      "kind": "var",
143      "loc": {
144        "start": {
145          "line": 17,
146          "column": 1
147        },
148        "end": {
149          "line": 17,
150          "column": 43
151        }
152      }
153    },
154    {
155      "type": "ExpressionStatement",
156      "expression": {
157        "type": "AssignmentExpression",
158        "operator": "=",
159        "left": {
160          "type": "MemberExpression",
161          "object": {
162            "type": "MemberExpression",
163            "object": {
164              "type": "Identifier",
165              "name": "a",
166              "decorators": [],
167              "loc": {
168                "start": {
169                  "line": 18,
170                  "column": 1
171                },
172                "end": {
173                  "line": 18,
174                  "column": 2
175                }
176              }
177            },
178            "property": {
179              "type": "Identifier",
180              "name": "b",
181              "decorators": [],
182              "loc": {
183                "start": {
184                  "line": 18,
185                  "column": 3
186                },
187                "end": {
188                  "line": 18,
189                  "column": 4
190                }
191              }
192            },
193            "computed": false,
194            "optional": false,
195            "loc": {
196              "start": {
197                "line": 18,
198                "column": 1
199              },
200              "end": {
201                "line": 18,
202                "column": 4
203              }
204            }
205          },
206          "property": {
207            "type": "Identifier",
208            "name": "c",
209            "decorators": [],
210            "loc": {
211              "start": {
212                "line": 18,
213                "column": 5
214              },
215              "end": {
216                "line": 18,
217                "column": 6
218              }
219            }
220          },
221          "computed": false,
222          "optional": false,
223          "loc": {
224            "start": {
225              "line": 18,
226              "column": 1
227            },
228            "end": {
229              "line": 18,
230              "column": 6
231            }
232          }
233        },
234        "right": {
235          "type": "NumberLiteral",
236          "value": 5,
237          "loc": {
238            "start": {
239              "line": 18,
240              "column": 9
241            },
242            "end": {
243              "line": 18,
244              "column": 10
245            }
246          }
247        },
248        "loc": {
249          "start": {
250            "line": 18,
251            "column": 1
252          },
253          "end": {
254            "line": 18,
255            "column": 10
256          }
257        }
258      },
259      "loc": {
260        "start": {
261          "line": 18,
262          "column": 1
263        },
264        "end": {
265          "line": 18,
266          "column": 11
267        }
268      }
269    }
270  ],
271  "loc": {
272    "start": {
273      "line": 1,
274      "column": 1
275    },
276    "end": {
277      "line": 19,
278      "column": 1
279    }
280  }
281}
282TypeError: Cannot assign to this property because it is readonly. [member_expression_74.ts:18:1]
283