File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -269,24 +269,26 @@ function makeClassDeclarationCode(versions: string[]): string {
269
269
const fields = versions
270
270
. map (
271
271
( v ) =>
272
- `private _raw${ v } : string\nprivate _set${ v } : Set<string> | undefined` ,
272
+ `private _raw${ v } : string\n\ nprivate _set${ v } : Set<string> | undefined` ,
273
273
)
274
- . join ( "\n" )
274
+ . join ( "\n\n " )
275
275
const parameters = versions . map ( ( v ) => `raw${ v } : string` ) . join ( ", " )
276
276
const init = versions . map ( ( v ) => `this._raw${ v } = raw${ v } ` ) . join ( "\n" )
277
277
const getters = versions
278
278
. map (
279
279
( v ) =>
280
280
`public get es${ v } (): Set<string> { return this._set${ v } ?? (this._set${ v } = new Set(this._raw${ v } .split(" "))) }` ,
281
281
)
282
- . join ( "\n" )
282
+ . join ( "\n\n " )
283
283
284
284
return `
285
285
class DataSet {
286
286
${ fields }
287
+
287
288
public constructor(${ parameters } ) {
288
289
${ init }
289
290
}
291
+
290
292
${ getters }
291
293
}
292
294
`
You can’t perform that action at this time.
0 commit comments