Home / Function/ isInDestructureAssignment() — vue Function Reference

isInDestructureAssignment() — vue Function Reference

Architecture documentation for the isInDestructureAssignment() function in babelUtils.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  9a980550_c20e_add5_a7c7_1e61a200b3ad["isInDestructureAssignment()"]
  946e0fa6_6c05_b820_0bd7_980d6d869192["babelUtils.ts"]
  9a980550_c20e_add5_a7c7_1e61a200b3ad -->|defined in| 946e0fa6_6c05_b820_0bd7_980d6d869192
  6a4dcb82_14bf_768b_c362_246755645991["isReferencedIdentifier()"]
  6a4dcb82_14bf_768b_c362_246755645991 -->|calls| 9a980550_c20e_add5_a7c7_1e61a200b3ad
  style 9a980550_c20e_add5_a7c7_1e61a200b3ad 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

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