1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
|
=== tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts ===
(function() {
var s0;
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 1, 4))
for ({ s0 = 5 } of [{ s0: 1 }]) {
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 2, 7))
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 2, 22))
}
});
(function() {
var s0;
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 6, 4))
for ({ s0:s0 = 5 } of [{ s0: 1 }]) {
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 7, 7))
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 6, 4))
>s0 : Symbol(s0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 7, 25))
}
});
(function() {
var s1;
>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 12, 4))
for ({ s1 = 5 } of [{}]) {
>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 13, 7))
}
});
(function() {
var s1;
>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 18, 4))
for ({ s1:s1 = 5 } of [{}]) {
>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 19, 7))
>s1 : Symbol(s1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 18, 4))
}
});
(function() {
var s2;
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 24, 4))
for ({ s2 = 5 } of [{ s2: "" }]) {
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 25, 7))
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 25, 22))
}
});
(function() {
var s2;
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 30, 4))
for ({ s2:s2 = 5 } of [{ s2: "" }]) {
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 31, 7))
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 30, 4))
>s2 : Symbol(s2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 31, 25))
}
});
(function() {
var s3: string;
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 36, 4))
for ({ s3 = 5 } of [{ s3: "" }]) {
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 37, 7))
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 37, 22))
}
});
(function() {
var s3: string;
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 42, 4))
for ({ s3:s3 = 5 } of [{ s3: "" }]) {
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 43, 7))
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 42, 4))
>s3 : Symbol(s3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 43, 25))
}
});
(function() {
let y;
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 48, 4))
({ y = 5 } = { y: 1 })
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 49, 3))
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 49, 15))
});
(function() {
let y;
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 53, 4))
({ y:y = 5 } = { y: 1 })
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 54, 3))
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 53, 4))
>y : Symbol(y, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 54, 17))
});
(function() {
let y0: number;
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 58, 4))
({ y0 = 5 } = { y0: 1 })
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 59, 3))
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 59, 16))
});
(function() {
let y0: number;
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 63, 4))
({ y0:y0 = 5 } = { y0: 1 })
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 64, 3))
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 63, 4))
>y0 : Symbol(y0, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 64, 19))
});
(function() {
let y1: string;
>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 68, 4))
({ y1 = 5 } = {})
>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 69, 3))
});
(function() {
let y1: string;
>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 73, 4))
({ y1:y1 = 5 } = {})
>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 74, 3))
>y1 : Symbol(y1, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 73, 4))
});
(function() {
let y2: string, y3: { x: string };
>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 78, 4))
>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 78, 16))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 78, 22))
({ y2 = 5, y3 = { x: 1 } } = {})
>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 79, 3))
>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 79, 11))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 79, 18))
});
(function() {
let y2: string, y3: { x: string };
>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 4))
>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 16))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 22))
({ y2:y2 = 5, y3:y3 = { x: 1 } } = {})
>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 84, 3))
>y2 : Symbol(y2, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 4))
>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 84, 14))
>y3 : Symbol(y3, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 83, 16))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 84, 24))
});
(function() {
let y4: number, y5: { x: number };
>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 88, 4))
>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 88, 16))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 88, 22))
({ y4 = 5, y5 = { x: 1 } } = {})
>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 89, 3))
>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 89, 11))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 89, 18))
});
(function() {
let y4: number, y5: { x: number };
>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 4))
>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 16))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 22))
({ y4:y4 = 5, y5:y5 = { x: 1 } } = {})
>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 94, 3))
>y4 : Symbol(y4, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 4))
>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 94, 14))
>y5 : Symbol(y5, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 93, 16))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 94, 24))
});
(function() {
let z;
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 99, 4))
({ z = { x: 5 } } = { z: { x: 1 } });
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 3))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 9))
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 22))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 100, 27))
});
(function() {
let z;
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 105, 4))
({ z:z = { x: 5 } } = { z: { x: 1 } });
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 3))
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 105, 4))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 11))
>z : Symbol(z, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 24))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 106, 29))
});
(function() {
let a = { s = 5 };
>a : Symbol(a, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 110, 4))
>s : Symbol(s, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 110, 10))
});
function foo({a = 4, b = { x: 5 }}) {
>foo : Symbol(foo, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 111, 3))
>a : Symbol(a, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 113, 14))
>b : Symbol(b, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 113, 20))
>x : Symbol(x, Decl(shorthandPropertyAssignmentsInDestructuring.ts, 113, 26))
}
|