Skip to content

Commit 88263da

Browse files
committed
fix spec build issue, revert spec changes
1 parent a7c5cc9 commit 88263da

File tree

12 files changed

+9
-63
lines changed

12 files changed

+9
-63
lines changed

src/lib/models/reflections/abstract.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ export abstract class Reflection
581581
}
582582

583583
for (let key in this.flags) {
584-
if (parseInt(key, 10) === <any>key || key === 'flags') continue;
584+
// tslint:disable-next-line:triple-equals
585+
if (parseInt(key, 10) == <any>key || key === 'flags') continue;
585586
if (this.flags[key]) result.flags[key] = true;
586587
}
587588

test/converter/access/specs.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"kind": 128,
2121
"kindString": "Class",
2222
"flags": {
23-
"0": true,
2423
"isPrivate": true,
2524
"isExported": true
2625
},
@@ -34,7 +33,6 @@
3433
"kind": 1024,
3534
"kindString": "Property",
3635
"flags": {
37-
"0": true,
3836
"isPrivate": true,
3937
"isExported": true
4038
},
@@ -59,7 +57,6 @@
5957
"kind": 1024,
6058
"kindString": "Property",
6159
"flags": {
62-
"0": true,
6360
"isExported": true,
6461
"isProtected": true
6562
},
@@ -84,7 +81,6 @@
8481
"kind": 2048,
8582
"kindString": "Method",
8683
"flags": {
87-
"0": true,
8884
"isPrivate": true,
8985
"isExported": true
9086
},
@@ -95,7 +91,6 @@
9591
"kind": 4096,
9692
"kindString": "Call signature",
9793
"flags": {
98-
"0": true,
9994
"isPrivate": true
10095
},
10196
"comment": {
@@ -121,7 +116,6 @@
121116
"kind": 2048,
122117
"kindString": "Method",
123118
"flags": {
124-
"0": true,
125119
"isExported": true,
126120
"isProtected": true
127121
},
@@ -132,7 +126,6 @@
132126
"kind": 4096,
133127
"kindString": "Call signature",
134128
"flags": {
135-
"0": true,
136129
"isProtected": true
137130
},
138131
"comment": {
@@ -185,7 +178,6 @@
185178
"kind": 32,
186179
"kindString": "Variable",
187180
"flags": {
188-
"0": true,
189181
"isPrivate": true,
190182
"isExported": true
191183
},
@@ -211,7 +203,6 @@
211203
"kind": 32,
212204
"kindString": "Variable",
213205
"flags": {
214-
"0": true,
215206
"isExported": true,
216207
"isProtected": true
217208
},
@@ -237,7 +228,6 @@
237228
"kind": 64,
238229
"kindString": "Function",
239230
"flags": {
240-
"0": true,
241231
"isPrivate": true,
242232
"isExported": true
243233
},
@@ -248,7 +238,6 @@
248238
"kind": 4096,
249239
"kindString": "Call signature",
250240
"flags": {
251-
"0": true,
252241
"isPrivate": true
253242
},
254243
"comment": {
@@ -274,7 +263,6 @@
274263
"kind": 64,
275264
"kindString": "Function",
276265
"flags": {
277-
"0": true,
278266
"isExported": true,
279267
"isProtected": true
280268
},
@@ -285,7 +273,6 @@
285273
"kind": 4096,
286274
"kindString": "Call signature",
287275
"flags": {
288-
"0": true,
289276
"isProtected": true
290277
},
291278
"comment": {

test/converter/class/specs.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"kind": 1024,
7676
"kindString": "Property",
7777
"flags": {
78-
"0": true,
7978
"isPrivate": true,
8079
"isExported": true
8180
},
@@ -125,7 +124,6 @@
125124
"kind": 1024,
126125
"kindString": "Property",
127126
"flags": {
128-
"0": true,
129127
"isStatic": true,
130128
"isExported": true
131129
},
@@ -151,7 +149,6 @@
151149
"kind": 2048,
152150
"kindString": "Method",
153151
"flags": {
154-
"0": true,
155152
"isPrivate": true,
156153
"isExported": true
157154
},
@@ -185,7 +182,6 @@
185182
"kind": 2048,
186183
"kindString": "Method",
187184
"flags": {
188-
"0": true,
189185
"isExported": true,
190186
"isProtected": true
191187
},
@@ -252,7 +248,6 @@
252248
"kind": 2048,
253249
"kindString": "Method",
254250
"flags": {
255-
"0": true,
256251
"isStatic": true,
257252
"isExported": true
258253
},
@@ -443,7 +438,6 @@
443438
"kind": 1024,
444439
"kindString": "Property",
445440
"flags": {
446-
"0": true,
447441
"isPrivate": true,
448442
"isConstructorProperty": true,
449443
"isExported": true
@@ -548,7 +542,6 @@
548542
"kind": 1024,
549543
"kindString": "Property",
550544
"flags": {
551-
"0": true,
552545
"isStatic": true,
553546
"isExported": true
554547
},
@@ -579,7 +572,6 @@
579572
"kind": 2048,
580573
"kindString": "Method",
581574
"flags": {
582-
"0": true,
583575
"isExported": true,
584576
"isProtected": true
585577
},
@@ -666,7 +658,6 @@
666658
"kind": 2048,
667659
"kindString": "Method",
668660
"flags": {
669-
"0": true,
670661
"isStatic": true,
671662
"isExported": true
672663
},

test/converter/events/specs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"kind": 8388608,
2828
"kindString": "Event",
2929
"flags": {
30-
"0": true,
3130
"isStatic": true
3231
},
3332
"comment": {

test/converter/export-assignment/specs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"kind": 64,
2121
"kindString": "Function",
2222
"flags": {
23-
"0": true,
2423
"isExported": true,
2524
"hasExportAssignment": true
2625
},

test/converter/function/specs.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@
227227
"name": "valueA",
228228
"kind": 32768,
229229
"kindString": "Parameter",
230-
"flags": {
231-
"0": true
232-
},
230+
"flags": {},
233231
"comment": {
234232
"text": "A parameter with a default string value."
235233
},
@@ -244,9 +242,7 @@
244242
"name": "valueB",
245243
"kind": 32768,
246244
"kindString": "Parameter",
247-
"flags": {
248-
"0": true
249-
},
245+
"flags": {},
250246
"comment": {
251247
"text": "A parameter with a default numeric value."
252248
},
@@ -261,9 +257,7 @@
261257
"name": "valueC",
262258
"kind": 32768,
263259
"kindString": "Parameter",
264-
"flags": {
265-
"0": true
266-
},
260+
"flags": {},
267261
"comment": {
268262
"text": "A parameter with a default NaN value."
269263
},
@@ -278,9 +272,7 @@
278272
"name": "valueD",
279273
"kind": 32768,
280274
"kindString": "Parameter",
281-
"flags": {
282-
"0": true
283-
},
275+
"flags": {},
284276
"comment": {
285277
"text": "A parameter with a default boolean value."
286278
},
@@ -295,9 +287,7 @@
295287
"name": "valueE",
296288
"kind": 32768,
297289
"kindString": "Parameter",
298-
"flags": {
299-
"0": true
300-
},
290+
"flags": {},
301291
"comment": {
302292
"text": "A parameter with a default null value."
303293
},
@@ -361,7 +351,6 @@
361351
"kind": 32768,
362352
"kindString": "Parameter",
363353
"flags": {
364-
"0": true,
365354
"isOptional": true
366355
},
367356
"comment": {
@@ -488,7 +477,6 @@
488477
"kind": 32768,
489478
"kindString": "Parameter",
490479
"flags": {
491-
"0": true,
492480
"isRest": true
493481
},
494482
"comment": {

test/converter/generic-class/specs.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
"kind": 1024,
9393
"kindString": "Property",
9494
"flags": {
95-
"0": true,
9695
"isProtected": true
9796
},
9897
"comment": {
@@ -116,7 +115,6 @@
116115
"kind": 1024,
117116
"kindString": "Property",
118117
"flags": {
119-
"0": true,
120118
"isProtected": true
121119
},
122120
"comment": {
@@ -282,7 +280,6 @@
282280
"kind": 1024,
283281
"kindString": "Property",
284282
"flags": {
285-
"0": true,
286283
"isProtected": true
287284
},
288285
"comment": {
@@ -311,7 +308,6 @@
311308
"kind": 1024,
312309
"kindString": "Property",
313310
"flags": {
314-
"0": true,
315311
"isProtected": true
316312
},
317313
"comment": {

test/converter/getter-setter/specs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"kind": 1024,
2828
"kindString": "Property",
2929
"flags": {
30-
"0": true,
3130
"isPrivate": true
3231
},
3332
"sources": [

test/converter/interface-empty/specs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"kind": 1024,
3131
"kindString": "Property",
3232
"flags": {
33-
"0": true,
3433
"isPrivate": true
3534
},
3635
"sources": [

test/converter/interface-implementation/specs.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"kind": 1024,
5555
"kindString": "Property",
5656
"flags": {
57-
"0": true,
5857
"isPrivate": true,
5958
"isExported": true
6059
},
@@ -117,9 +116,7 @@
117116
"name": "filter",
118117
"kind": 32768,
119118
"kindString": "Parameter",
120-
"flags": {
121-
"0": true
122-
},
119+
"flags": {},
123120
"type": {
124121
"type": "instrinct",
125122
"name": "any"
@@ -131,9 +128,7 @@
131128
"name": "priority",
132129
"kind": 32768,
133130
"kindString": "Parameter",
134-
"flags": {
135-
"0": true
136-
},
131+
"flags": {},
137132
"type": {
138133
"type": "instrinct",
139134
"name": "number"
@@ -766,7 +761,6 @@
766761
"kind": 32768,
767762
"kindString": "Parameter",
768763
"flags": {
769-
"0": true,
770764
"isOptional": true
771765
},
772766
"type": {
@@ -780,7 +774,6 @@
780774
"kind": 32768,
781775
"kindString": "Parameter",
782776
"flags": {
783-
"0": true,
784777
"isOptional": true
785778
},
786779
"type": {

test/converter/literal-type/specs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"kind": 32,
4343
"kindString": "Variable",
4444
"flags": {
45-
"0": true,
4645
"isOptional": true
4746
},
4847
"sources": [
@@ -63,7 +62,6 @@
6362
"kind": 32,
6463
"kindString": "Variable",
6564
"flags": {
66-
"0": true,
6765
"isOptional": true
6866
},
6967
"sources": [

0 commit comments

Comments
 (0)