mirror of https://github.com/vuejs/core.git
chore(compiler-sfc): break in switch statement (#8347)
This commit is contained in:
parent
4fa8da8576
commit
702711e771
|
@ -225,13 +225,16 @@ function innerResolveTypeElements(
|
||||||
if (resolved) {
|
if (resolved) {
|
||||||
return resolveTypeElements(ctx, resolved, resolved._ownerScope)
|
return resolveTypeElements(ctx, resolved, resolved._ownerScope)
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case 'TSTypeQuery': {
|
case 'TSTypeQuery':
|
||||||
|
{
|
||||||
const resolved = resolveTypeReference(ctx, node, scope)
|
const resolved = resolveTypeReference(ctx, node, scope)
|
||||||
if (resolved) {
|
if (resolved) {
|
||||||
return resolveTypeElements(ctx, resolved, resolved._ownerScope)
|
return resolveTypeElements(ctx, resolved, resolved._ownerScope)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
return ctx.error(`Unresolvable type: ${node.type}`, node, scope)
|
return ctx.error(`Unresolvable type: ${node.type}`, node, scope)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue