import * as ts from 'typescript' ; const transformer = context => { return sourceFile => { const visitor = ( node ) : ts . Node => { console . log ( node . kind , `\t# ts.SyntaxKind.${ ts . SyntaxKind [ node . kind ] }` ) ; return ts . visitEachChild ( node , visitor , context ) ; } ; return ts . visitNode ( sourceFile , visitor ) ; } ; } ; export default transformer ;