mirror of https://github.com/vuejs/core.git
chore: remove unused param
This commit is contained in:
parent
4af5d1b075
commit
566748c1ed
|
@ -45,7 +45,6 @@ import {
|
||||||
ObjectMethod,
|
ObjectMethod,
|
||||||
LVal,
|
LVal,
|
||||||
Expression,
|
Expression,
|
||||||
VariableDeclaration,
|
|
||||||
TSEnumDeclaration
|
TSEnumDeclaration
|
||||||
} from '@babel/types'
|
} from '@babel/types'
|
||||||
import { walk } from 'estree-walker'
|
import { walk } from 'estree-walker'
|
||||||
|
@ -516,11 +515,7 @@ export function compileScript(
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
function processWithDefaults(
|
function processWithDefaults(node: Node, declId?: LVal): boolean {
|
||||||
node: Node,
|
|
||||||
declId?: LVal,
|
|
||||||
declKind?: VariableDeclaration['kind']
|
|
||||||
): boolean {
|
|
||||||
if (!isCallOf(node, WITH_DEFAULTS)) {
|
if (!isCallOf(node, WITH_DEFAULTS)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -1329,7 +1324,7 @@ export function compileScript(
|
||||||
// defineProps / defineEmits
|
// defineProps / defineEmits
|
||||||
const isDefineProps =
|
const isDefineProps =
|
||||||
processDefineProps(init, decl.id) ||
|
processDefineProps(init, decl.id) ||
|
||||||
processWithDefaults(init, decl.id, node.kind)
|
processWithDefaults(init, decl.id)
|
||||||
const isDefineEmits = processDefineEmits(init, decl.id)
|
const isDefineEmits = processDefineEmits(init, decl.id)
|
||||||
if (isDefineProps || isDefineEmits) {
|
if (isDefineProps || isDefineEmits) {
|
||||||
if (left === 1) {
|
if (left === 1) {
|
||||||
|
|
Loading…
Reference in New Issue