import { State , Token , createQueryState } from './token' ; import type { AnyTable } from '../TableType' ; export class CollectionToken extends Token { tokens : Token [ ] ; constructor ( tokens ) { super ( ) ; this . tokens = tokens ; } reduce ( state , numberOfParameters , tables ) { const tokensState = createQueryState ( this . tokens , numberOfParameters , tables ) ; state . parameters . push ( ... tokensState . parameters ) ; state . text . push ( ... tokensState . text ) ; return state ; } }