import { SourceFileStructure , StructureKind } from 'ts-morph' ; import { VdmEntity , VdmServiceMetadata } from '../vdm-types' ; import { entityClass } from './class' ; import { entityImportDeclarations , otherEntityImports } from './imports' ; import { entityTypeInterface } from './interface' ; internal export function entitySourceFile ( entity , service ) { return { kind : StructureKind . SourceFile , statements : [ ... entityImportDeclarations ( entity , service . oDataVersion ) , ... otherEntityImports ( entity , service ) , entityClass ( entity , service ) , entityTypeInterface ( entity , service ) ] } ; }