isInDestructureAssignment() — vue Function Reference
Architecture documentation for the isInDestructureAssignment() function in babelUtils.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD b7b928d0_c9b4_a499_d4b7_30a9de5981c9["isInDestructureAssignment()"] fcee39ec_18fe_7a99_fb49_d33db4d055a4["babelUtils.ts"] b7b928d0_c9b4_a499_d4b7_30a9de5981c9 -->|defined in| fcee39ec_18fe_7a99_fb49_d33db4d055a4 762f11c0_e86f_83f8_d86f_a9c04b7e5b51["isReferencedIdentifier()"] 762f11c0_e86f_83f8_d86f_a9c04b7e5b51 -->|calls| b7b928d0_c9b4_a499_d4b7_30a9de5981c9 style b7b928d0_c9b4_a499_d4b7_30a9de5981c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/babelUtils.ts lines 119–138
export function isInDestructureAssignment(
parent: Node,
parentStack: Node[]
): boolean {
if (
parent &&
(parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')
) {
let i = parentStack.length
while (i--) {
const p = parentStack[i]
if (p.type === 'AssignmentExpression') {
return true
} else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) {
break
}
}
}
return false
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isInDestructureAssignment() do?
isInDestructureAssignment() is a function in the vue codebase, defined in packages/compiler-sfc/src/babelUtils.ts.
Where is isInDestructureAssignment() defined?
isInDestructureAssignment() is defined in packages/compiler-sfc/src/babelUtils.ts at line 119.
What calls isInDestructureAssignment()?
isInDestructureAssignment() is called by 1 function(s): isReferencedIdentifier.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free