{"version":3,"file":"util.cjs","sources":["../../../../../src/components/monaco-query-field/monaco-completion-provider/util.ts"],"sourcesContent":["// Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/util.ts\n\n// this helper class is used to make typescript warn you when you forget\n// a case-block in a switch statement.\n// example code that triggers the typescript-error:\n//\n// const x:'A'|'B'|'C' = 'A';\n//\n// switch(x) {\n//   case 'A':\n//     // something\n//   case 'B':\n//     // something\n//   default:\n//     throw new NeverCaseError(x);\n// }\n//\n//\n// typescript will show an error in this case,\n// when you add the missing `case 'C'` code,\n// the problem will be fixed.\n\nexport class NeverCaseError extends Error {\n  constructor(value: never) {\n    super('should never happen');\n  }\n}\n"],"names":[],"mappings":";;;;;AAsBO,MAAM,uBAAuB,KAAA,CAAM;AAAA,EACxC,YAAY,KAAA,EAAc;AACxB,IAAA,KAAA,CAAM,qBAAqB,CAAA;AAAA,EAC7B;AACF;;;;"}