Home / Function/ analyzeScriptBindings() — vue Function Reference

analyzeScriptBindings() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  aeb67520_c222_7e8e_48f7_9535500e1530["analyzeScriptBindings()"]
  16b5f9ed_1e09_eff8_5797_7cb90fc86d37["compileScript()"]
  16b5f9ed_1e09_eff8_5797_7cb90fc86d37 -->|calls| aeb67520_c222_7e8e_48f7_9535500e1530
  3dda6db9_d933_350f_4c9e_16f7fc6b1f16["analyzeBindingsFromOptions()"]
  aeb67520_c222_7e8e_48f7_9535500e1530 -->|calls| 3dda6db9_d933_350f_4c9e_16f7fc6b1f16
  style aeb67520_c222_7e8e_48f7_9535500e1530 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1663–1673

function analyzeScriptBindings(ast: Statement[]): BindingMetadata {
  for (const node of ast) {
    if (
      node.type === 'ExportDefaultDeclaration' &&
      node.declaration.type === 'ObjectExpression'
    ) {
      return analyzeBindingsFromOptions(node.declaration)
    }
  }
  return {}
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does analyzeScriptBindings() do?
analyzeScriptBindings() is a function in the vue codebase.
What does analyzeScriptBindings() call?
analyzeScriptBindings() calls 1 function(s): analyzeBindingsFromOptions.
What calls analyzeScriptBindings()?
analyzeScriptBindings() is called by 1 function(s): compileScript.

Analyze Your Own Codebase

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

Try Supermodel Free