@@ -201,7 +201,9 @@ export abstract class DataType<TType extends Type = any> implements Partial<Visi
201
201
202
202
export interface Null extends DataType < Type . Null > { TArray : void ; TValue : null ; }
203
203
export class Null extends DataType < Type . Null > {
204
- constructor ( ) { super ( Type . Null ) ; }
204
+ constructor ( ) {
205
+ super ( Type . Null ) ;
206
+ }
205
207
public toString ( ) { return `Null` ; }
206
208
public acceptTypeVisitor ( visitor : TypeVisitor ) : any {
207
209
return visitor . visitNull ( this ) ;
@@ -269,7 +271,9 @@ export class Float64 extends Float<Float64Array> { constructor() { super(Precisi
269
271
270
272
export interface Binary extends DataType < Type . Binary > { TArray : Uint8Array ; TValue : Uint8Array ; }
271
273
export class Binary extends DataType < Type . Binary > {
272
- constructor ( ) { super ( Type . Binary ) ; }
274
+ constructor ( ) {
275
+ super ( Type . Binary ) ;
276
+ }
273
277
public toString ( ) { return `Binary` ; }
274
278
public acceptTypeVisitor ( visitor : TypeVisitor ) : any {
275
279
return visitor . visitBinary ( this ) ;
@@ -282,7 +286,9 @@ export class Binary extends DataType<Type.Binary> {
282
286
283
287
export interface Utf8 extends DataType < Type . Utf8 > { TArray : Uint8Array ; TValue : string ; }
284
288
export class Utf8 extends DataType < Type . Utf8 > {
285
- constructor ( ) { super ( Type . Utf8 ) ; }
289
+ constructor ( ) {
290
+ super ( Type . Utf8 ) ;
291
+ }
286
292
public toString ( ) { return `Utf8` ; }
287
293
public acceptTypeVisitor ( visitor : TypeVisitor ) : any {
288
294
return visitor . visitUtf8 ( this ) ;
@@ -295,7 +301,9 @@ export class Utf8 extends DataType<Type.Utf8> {
295
301
296
302
export interface Bool extends DataType < Type . Bool > { TArray : Uint8Array ; TValue : boolean ; }
297
303
export class Bool extends DataType < Type . Bool > {
298
- constructor ( ) { super ( Type . Bool ) ; }
304
+ constructor ( ) {
305
+ super ( Type . Bool ) ;
306
+ }
299
307
public toString ( ) { return `Bool` ; }
300
308
public acceptTypeVisitor ( visitor : TypeVisitor ) : any {
301
309
return visitor . visitBool ( this ) ;
@@ -325,7 +333,9 @@ export class Decimal extends DataType<Type.Decimal> {
325
333
/* tslint:disable:class-name */
326
334
export interface Date_ extends DataType < Type . Date > { TArray : Int32Array ; TValue : Date ; }
327
335
export class Date_ extends DataType < Type . Date > {
328
- constructor ( public readonly unit : DateUnit ) { super ( Type . Date ) ; }
336
+ constructor ( public readonly unit : DateUnit ) {
337
+ super ( Type . Date ) ;
338
+ }
329
339
public toString ( ) { return `Date${ ( this . unit + 1 ) * 32 } <${ DateUnit [ this . unit ] } >` ; }
330
340
public acceptTypeVisitor ( visitor : TypeVisitor ) : any {
331
341
return visitor . visitDate ( this ) ;
@@ -485,7 +495,7 @@ export class Map_ extends DataType<Type.Map> {
485
495
public toString ( ) { return `Map<${ this . children . join ( `, ` ) } >` ; }
486
496
public acceptTypeVisitor ( visitor : TypeVisitor ) : any { return visitor . visitMap ( this ) ; }
487
497
protected static [ Symbol . toStringTag ] = ( ( proto : Map_ ) => {
488
- return proto [ Symbol . toStringTag ] = 'Map ' ;
498
+ return proto [ Symbol . toStringTag ] = 'Map_ ' ;
489
499
} ) ( Map_ . prototype ) ;
490
500
}
491
501
0 commit comments