Home / Function/ isInDestructuringAssignment() — vite Function Reference

isInDestructuringAssignment() — vite Function Reference

Architecture documentation for the isInDestructuringAssignment() function in ssrTransform.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  5f4200f5_1cdf_b284_eca0_1eecbd7bc4d3["isInDestructuringAssignment()"]
  20c20aaf_ad5b_4014_72b5_c8262a2b5be1["ssrTransform.ts"]
  5f4200f5_1cdf_b284_eca0_1eecbd7bc4d3 -->|defined in| 20c20aaf_ad5b_4014_72b5_c8262a2b5be1
  027164d9_0d90_6487_4866_e21cb9d3e6c1["ssrTransformScript()"]
  027164d9_0d90_6487_4866_e21cb9d3e6c1 -->|calls| 5f4200f5_1cdf_b284_eca0_1eecbd7bc4d3
  17df6204_81d2_952b_8111_6794dd397a83["isRefIdentifier()"]
  17df6204_81d2_952b_8111_6794dd397a83 -->|calls| 5f4200f5_1cdf_b284_eca0_1eecbd7bc4d3
  style 5f4200f5_1cdf_b284_eca0_1eecbd7bc4d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/ssr/ssrTransform.ts lines 764–772

function isInDestructuringAssignment(
  parent: _Node,
  parentStack: _Node[],
): boolean {
  if (parent.type === 'Property' || parent.type === 'ArrayPattern') {
    return parentStack.some((i) => i.type === 'AssignmentExpression')
  }
  return false
}

Domain

Subdomains

Frequently Asked Questions

What does isInDestructuringAssignment() do?
isInDestructuringAssignment() is a function in the vite codebase, defined in packages/vite/src/node/ssr/ssrTransform.ts.
Where is isInDestructuringAssignment() defined?
isInDestructuringAssignment() is defined in packages/vite/src/node/ssr/ssrTransform.ts at line 764.
What calls isInDestructuringAssignment()?
isInDestructuringAssignment() is called by 2 function(s): isRefIdentifier, ssrTransformScript.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free