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
  e9a47089_4307_a69e_1b03_64c387b214d6["containsSlotChild()"]
  54260741_ae9d_a025_86de_47c513f5f82d["index.ts"]
  e9a47089_4307_a69e_1b03_64c387b214d6 -->|defined in| 54260741_ae9d_a025_86de_47c513f5f82d
  118a5b53_0e80_5668_cad0_a973c510ef35["genScopedSlots()"]
  118a5b53_0e80_5668_cad0_a973c510ef35 -->|calls| e9a47089_4307_a69e_1b03_64c387b214d6
  style e9a47089_4307_a69e_1b03_64c387b214d6 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, defined in src/compiler/codegen/index.ts.
Where is containsSlotChild() defined?
containsSlotChild() is defined in src/compiler/codegen/index.ts at line 479.
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