Home / Function/ registerBinding() — vue Function Reference

registerBinding() — vue Function Reference

Architecture documentation for the registerBinding() function in compileScript.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  72b07125_46f6_2586_ee42_1bdaa78eb7e2["registerBinding()"]
  af57cd20_c4ce_0877_c02c_52056ca04d4a["compileScript()"]
  af57cd20_c4ce_0877_c02c_52056ca04d4a -->|calls| 72b07125_46f6_2586_ee42_1bdaa78eb7e2
  4816b617_49b6_86ec_ba60_1b6ac824a31a["walkDeclaration()"]
  4816b617_49b6_86ec_ba60_1b6ac824a31a -->|calls| 72b07125_46f6_2586_ee42_1bdaa78eb7e2
  9ae6652a_4e20_d88f_ad15_1cfe7add8cc2["walkObjectPattern()"]
  9ae6652a_4e20_d88f_ad15_1cfe7add8cc2 -->|calls| 72b07125_46f6_2586_ee42_1bdaa78eb7e2
  8fa928f1_7d66_f996_7796_01a10820f019["walkPattern()"]
  8fa928f1_7d66_f996_7796_01a10820f019 -->|calls| 72b07125_46f6_2586_ee42_1bdaa78eb7e2
  style 72b07125_46f6_2586_ee42_1bdaa78eb7e2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1275–1281

function registerBinding(
  bindings: Record<string, BindingTypes>,
  node: Identifier,
  type: BindingTypes
) {
  bindings[node.name] = type
}

Domain

Subdomains

Frequently Asked Questions

What does registerBinding() do?
registerBinding() is a function in the vue codebase.
What calls registerBinding()?
registerBinding() is called by 4 function(s): compileScript, walkDeclaration, walkObjectPattern, walkPattern.

Analyze Your Own Codebase

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

Try Supermodel Free