import ts from 'typescript' ; import { File } from '../Components/File' ; import { ComponentFactory } from './ComponentFactory' ; export namespace FileFactory { export function create ( sourceFile , checker ) { const file = new File ( ) ; file . parts = ComponentFactory . create ( sourceFile , checker ) ; return file ; } }