import { createSourceFile , ScriptKind , ScriptTarget , SourceFile } from 'typescript' ; export function createAST ( source , fileName ? , scriptKind ? ) { return createSourceFile ( fileName || '' , source , ScriptTarget . Latest , true , scriptKind ) ; }