Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const {
line,
character
} = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
/* tslint:disable-next-line:no-console */
console.log(
`${diagnostic.file.fileName}:${line + 1}:${character + 1} ${message}`
);
} else {
/* tslint:disable-next-line:no-console */
console.log(`==> ${message}`);
}
});
throw new Error(capnpc_ts.errors.GEN_TS_EMIT_FAILED);
}
}