• 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": "ArrayPattern",
11            "elements": [
12              {
13                "type": "Identifier",
14                "name": "a",
15                "decorators": [],
16                "loc": {
17                  "start": {
18                    "line": 17,
19                    "column": 6
20                  },
21                  "end": {
22                    "line": 17,
23                    "column": 7
24                  }
25                }
26              },
27              {
28                "type": "ArrayPattern",
29                "elements": [
30                  {
31                    "type": "Identifier",
32                    "name": "b",
33                    "decorators": [],
34                    "loc": {
35                      "start": {
36                        "line": 17,
37                        "column": 10
38                      },
39                      "end": {
40                        "line": 17,
41                        "column": 11
42                      }
43                    }
44                  },
45                  {
46                    "type": "Identifier",
47                    "name": "c",
48                    "decorators": [],
49                    "loc": {
50                      "start": {
51                        "line": 17,
52                        "column": 13
53                      },
54                      "end": {
55                        "line": 17,
56                        "column": 14
57                      }
58                    }
59                  }
60                ],
61                "loc": {
62                  "start": {
63                    "line": 17,
64                    "column": 9
65                  },
66                  "end": {
67                    "line": 17,
68                    "column": 15
69                  }
70                }
71              }
72            ],
73            "loc": {
74              "start": {
75                "line": 17,
76                "column": 5
77              },
78              "end": {
79                "line": 17,
80                "column": 16
81              }
82            }
83          },
84          "init": {
85            "type": "ArrayExpression",
86            "elements": [
87              {
88                "type": "NumberLiteral",
89                "value": 1,
90                "loc": {
91                  "start": {
92                    "line": 17,
93                    "column": 20
94                  },
95                  "end": {
96                    "line": 17,
97                    "column": 21
98                  }
99                }
100              },
101              {
102                "type": "NumberLiteral",
103                "value": 2,
104                "loc": {
105                  "start": {
106                    "line": 17,
107                    "column": 23
108                  },
109                  "end": {
110                    "line": 17,
111                    "column": 24
112                  }
113                }
114              }
115            ],
116            "loc": {
117              "start": {
118                "line": 17,
119                "column": 19
120              },
121              "end": {
122                "line": 17,
123                "column": 25
124              }
125            }
126          },
127          "loc": {
128            "start": {
129              "line": 17,
130              "column": 5
131            },
132            "end": {
133              "line": 17,
134              "column": 25
135            }
136          }
137        }
138      ],
139      "kind": "var",
140      "loc": {
141        "start": {
142          "line": 17,
143          "column": 1
144        },
145        "end": {
146          "line": 17,
147          "column": 26
148        }
149      }
150    }
151  ],
152  "loc": {
153    "start": {
154      "line": 1,
155      "column": 1
156    },
157    "end": {
158      "line": 17,
159      "column": 26
160    }
161  }
162}
163TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. [arrayDestructuring20.ts:17:9]
164