refactor(compiler-vapor): missing check in genOperation

This commit is contained in:
三咲智子 Kevin Deng 2024-01-31 17:32:01 +08:00
parent 3817bbf134
commit 2bc107a7a7
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 0 additions and 10 deletions

View File

@ -54,12 +54,6 @@ function genOperation(
return genIf(oper, context)
case IRNodeTypes.FOR:
return genFor(oper, context)
case IRNodeTypes.WITH_DIRECTIVE:
// TODO remove this after remove checkNever
// generated, skip
break
default:
return checkNever(oper)
}
return []
@ -87,7 +81,3 @@ function genEffect({ operations }: IREffect, context: CodegenContext) {
push(INDENT_END, NEWLINE, '})')
return frag
}
// remove when stable
// @ts-expect-error
function checkNever(x: never): never {}