@@ -70,13 +70,13 @@ x.middleInit = "R"; // should also fail
70
70
71
71
=== tests/cases/conformance/jsdoc/index.js ===
72
72
const x = {};
73
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
73
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
74
74
75
75
Object.defineProperty(x, "name", { value: "Charles", writable: true });
76
76
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
77
77
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
78
78
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
79
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
79
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
80
80
>"name" : Symbol(x.name, Decl(index.js, 0, 13))
81
81
>value : Symbol(value, Decl(index.js, 1, 34))
82
82
>writable : Symbol(writable, Decl(index.js, 1, 52))
@@ -85,15 +85,15 @@ Object.defineProperty(x, "middleInit", { value: "H" });
85
85
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
86
86
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
87
87
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
88
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
88
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
89
89
>"middleInit" : Symbol(x.middleInit, Decl(index.js, 1, 71))
90
90
>value : Symbol(value, Decl(index.js, 2, 40))
91
91
92
92
Object.defineProperty(x, "lastName", { value: "Smith", writable: false });
93
93
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
94
94
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
95
95
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
96
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
96
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
97
97
>"lastName" : Symbol(x.lastName, Decl(index.js, 2, 55))
98
98
>value : Symbol(value, Decl(index.js, 3, 38))
99
99
>writable : Symbol(writable, Decl(index.js, 3, 54))
@@ -102,7 +102,7 @@ Object.defineProperty(x, "zip", { get() { return 98122 }, set(_) { /*ignore*/ }
102
102
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
103
103
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
104
104
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
105
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
105
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
106
106
>"zip" : Symbol(x.zip, Decl(index.js, 3, 74))
107
107
>get : Symbol(get, Decl(index.js, 4, 33))
108
108
>set : Symbol(set, Decl(index.js, 4, 57))
@@ -112,15 +112,15 @@ Object.defineProperty(x, "houseNumber", { get() { return 21.75 } });
112
112
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
113
113
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
114
114
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
115
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
115
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
116
116
>"houseNumber" : Symbol(x.houseNumber, Decl(index.js, 4, 83))
117
117
>get : Symbol(get, Decl(index.js, 5, 41))
118
118
119
119
Object.defineProperty(x, "zipStr", {
120
120
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
121
121
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
122
122
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
123
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
123
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
124
124
>"zipStr" : Symbol(x.zipStr, Decl(index.js, 5, 68))
125
125
126
126
/** @param {string} str */
@@ -147,15 +147,15 @@ function takeName(named) { return named.name; }
147
147
148
148
takeName(x);
149
149
>takeName : Symbol(takeName, Decl(index.js, 11, 3))
150
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
150
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
151
151
152
152
/**
153
153
* @type {number}
154
154
*/
155
155
var a = x.zip;
156
156
>a : Symbol(a, Decl(index.js, 22, 3))
157
157
>x.zip : Symbol(x.zip, Decl(index.js, 3, 74))
158
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
158
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
159
159
>zip : Symbol(x.zip, Decl(index.js, 3, 74))
160
160
161
161
/**
@@ -164,17 +164,17 @@ var a = x.zip;
164
164
var b = x.houseNumber;
165
165
>b : Symbol(b, Decl(index.js, 27, 3))
166
166
>x.houseNumber : Symbol(x.houseNumber, Decl(index.js, 4, 83))
167
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
167
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
168
168
>houseNumber : Symbol(x.houseNumber, Decl(index.js, 4, 83))
169
169
170
170
const returnExemplar = () => x;
171
171
>returnExemplar : Symbol(returnExemplar, Decl(index.js, 29, 5))
172
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
172
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
173
173
174
174
const needsExemplar = (_ = x) => void 0;
175
175
>needsExemplar : Symbol(needsExemplar, Decl(index.js, 30, 5))
176
176
>_ : Symbol(_, Decl(index.js, 30, 23))
177
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
177
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
178
178
179
179
const expected = /** @type {{name: string, readonly middleInit: string, readonly lastName: string, zip: number, readonly houseNumber: number, zipStr: string}} */(/** @type {*} */(null));
180
180
>expected : Symbol(expected, Decl(index.js, 32, 5))
@@ -199,5 +199,5 @@ module.exports = x;
199
199
>module.exports : Symbol("tests/cases/conformance/jsdoc/index", Decl(index.js, 0, 0))
200
200
>module : Symbol(export=, Decl(index.js, 41, 48))
201
201
>exports : Symbol(export=, Decl(index.js, 41, 48))
202
- >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22))
202
+ >x : Symbol(x, Decl(index.js, 0, 5), Decl(index.js, 1, 22), Decl(index.js, 2, 22), Decl(index.js, 3, 22), Decl(index.js, 4, 22) ... and 2 more )
203
203
0 commit comments