Home / Function/ containsSlotChild() — vue Function Reference

containsSlotChild() — vue Function Reference

Architecture documentation for the containsSlotChild() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  29ffbd64_5bc4_bf0c_1997_243862094926["containsSlotChild()"]
  d1ccd3d8_f5cf_7075_df2f_38965de3798e["genScopedSlots()"]
  d1ccd3d8_f5cf_7075_df2f_38965de3798e -->|calls| 29ffbd64_5bc4_bf0c_1997_243862094926
  style 29ffbd64_5bc4_bf0c_1997_243862094926 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/codegen/index.ts lines 479–487

function containsSlotChild(el: ASTNode): boolean {
  if (el.type === 1) {
    if (el.tag === 'slot') {
      return true
    }
    return el.children.some(containsSlotChild)
  }
  return false
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does containsSlotChild() do?
containsSlotChild() is a function in the vue codebase.
What calls containsSlotChild()?
containsSlotChild() is called by 1 function(s): genScopedSlots.

Analyze Your Own Codebase

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

Try Supermodel Free