export default class FileSet { public filesByName : object = { } ; public addFile ( name , content ) { this . filesByName [ name ] = content ; } public getFiles ( ) { return this . filesByName ; } public getFileNames ( ) { return Object . keys ( this . filesByName ) ; } public getContent ( fileName ) { return this . filesByName [ fileName ] ; } public merge ( source ) { source . getFileNames ( ) . map ( ( fileName ) => { this . addFile ( fileName , source . getContent ( fileName ) ) ; } ) ; } }