file author cxtom(cxtom2008 gmail import { DiagnosticWithLocation } from 'byots' ; import { CompilerState } from './types' ; let globalState ; export function setState ( state ) { globalState = state ; } export function error ( error ) { globalState . errors . push ( error ) ; }