chore: fix hoistStatic exhaustive check
This commit is contained in:
parent
96605b79a3
commit
66b5f0b480
@ -597,6 +597,9 @@ function genNode(node: CodegenNode | symbol | string, context: CodegenContext) {
|
|||||||
break
|
break
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
|
case NodeTypes.IF_BRANCH:
|
||||||
|
// noop
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
assert(false, `unhandled codegen node type: ${(node as any).type}`)
|
assert(false, `unhandled codegen node type: ${(node as any).type}`)
|
||||||
|
@ -143,6 +143,7 @@ export function isStaticNode(
|
|||||||
return true
|
return true
|
||||||
case NodeTypes.IF:
|
case NodeTypes.IF:
|
||||||
case NodeTypes.FOR:
|
case NodeTypes.FOR:
|
||||||
|
case NodeTypes.IF_BRANCH:
|
||||||
return false
|
return false
|
||||||
case NodeTypes.INTERPOLATION:
|
case NodeTypes.INTERPOLATION:
|
||||||
case NodeTypes.TEXT_CALL:
|
case NodeTypes.TEXT_CALL:
|
||||||
|
Loading…
Reference in New Issue
Block a user