import { Emitter , Create } from './emitter' ; import { Vertex , Edge } from 'lsif-protocol' ; import { Writer } from '../common/writer' ; export const create = ( writer ) : Emitter => { return { start : ( ) => { } , emit : ( element ) => { writer . writeln ( JSON . stringify ( element , undefined , 0 ) ) ; } , flush : ( ) => { return writer . flush ( ) ; } , end : ( ) => { return writer . close ( ) ; } } ; } ;