{"version":3,"sources":["../../../src/errors/asserts/asserts.ts"],"sourcesContent":["import { Position }  from \"../../core/positions\";\r\n\r\n/**\r\n * Place this function to check and ensure the code where invoked must never\r\n * reach. This function is ueful to identify issues with the code by identifying\r\n * the code path which must have never reached.\r\n * @param x The object which needs to be asserted as never\r\n */\r\nfunction assertNever(x: any, pos?:Position): never {\r\n  let message = \"Assert never\";\r\n\r\n  if (x !== undefined && x !== null) {\r\n    message = `Assert never: ${x.toString()}`;\r\n  }\r\n\r\n  if (pos) {\r\n    message += ` at ${pos.toString()}`;\r\n  }\r\n\r\n  throw new Error(message);\r\n}\r\n\r\nexport default assertNever;\r\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,YAAY,GAAQ,KAAsB;AACjD,MAAI,UAAU;AAEd,MAAI,MAAM,UAAa,MAAM,MAAM;AACjC,cAAU,iBAAiB,EAAE,SAAS,CAAC;AAAA,EACzC;AAEA,MAAI,KAAK;AACP,eAAW,OAAO,IAAI,SAAS,CAAC;AAAA,EAClC;AAEA,QAAM,IAAI,MAAM,OAAO;AACzB;AAEA,IAAO,kBAAQ;","names":[]}