Home / Function/ isCallOf() — vue Function Reference

isCallOf() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c9c376a2_8768_e10f_0236_eb868edd143f["isCallOf()"]
  16b5f9ed_1e09_eff8_5797_7cb90fc86d37["compileScript()"]
  16b5f9ed_1e09_eff8_5797_7cb90fc86d37 -->|calls| c9c376a2_8768_e10f_0236_eb868edd143f
  4ae6f599_c6d3_5f0e_3efb_3633ef6e68c0["walkDeclaration()"]
  4ae6f599_c6d3_5f0e_3efb_3633ef6e68c0 -->|calls| c9c376a2_8768_e10f_0236_eb868edd143f
  745effd8_5d53_dcf6_b556_882cf7b4120c["canNeverBeRef()"]
  745effd8_5d53_dcf6_b556_882cf7b4120c -->|calls| c9c376a2_8768_e10f_0236_eb868edd143f
  style c9c376a2_8768_e10f_0236_eb868edd143f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1616–1628

function isCallOf(
  node: Node | null | undefined,
  test: string | ((id: string) => boolean)
): node is CallExpression {
  return !!(
    node &&
    node.type === 'CallExpression' &&
    node.callee.type === 'Identifier' &&
    (typeof test === 'string'
      ? node.callee.name === test
      : test(node.callee.name))
  )
}

Domain

Subdomains

Frequently Asked Questions

What does isCallOf() do?
isCallOf() is a function in the vue codebase.
What calls isCallOf()?
isCallOf() is called by 3 function(s): canNeverBeRef, compileScript, walkDeclaration.

Analyze Your Own Codebase

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

Try Supermodel Free