import { ts } from "../typescript" ; param kind export function getSyntaxKindName ( kind ) { return getKindCache ( ) [ kind ] ; } let kindCache = undefined ; function getKindCache ( ) { if ( kindCache != null ) return kindCache ; kindCache = { } ; for ( const name of Object . keys ( ts . SyntaxKind ) . filter ( k => isNaN ( parseInt ( k , 10 ) ) ) ) { const value = ( ts . SyntaxKind as any ) [ name ] as number ; if ( kindCache [ value ] == null ) kindCache [ value ] = name ; } return kindCache ; }