import { IToken } from './Parser' ; /**
 * Finds all the direct childs of a specifyed type
 */ export function findChildrenByType ( token , type ) { return token . children ? token . children . filter ( x => x . type == type ) : [ ] ; }