Home / Function/ createASTElement() — vue Function Reference

createASTElement() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  61cd312b_0f3f_8048_b42c_85f0f4766ca8["createASTElement()"]
  bbf88914_62b5_839d_3cfb_85a00fd1d67b["parse()"]
  bbf88914_62b5_839d_3cfb_85a00fd1d67b -->|calls| 61cd312b_0f3f_8048_b42c_85f0f4766ca8
  5b174fba_1f83_94cc_774e_5234231c01dc["processSlotContent()"]
  5b174fba_1f83_94cc_774e_5234231c01dc -->|calls| 61cd312b_0f3f_8048_b42c_85f0f4766ca8
  460171af_a744_8c20_a53f_2f1aedb3bc7b["cloneASTElement()"]
  460171af_a744_8c20_a53f_2f1aedb3bc7b -->|calls| 61cd312b_0f3f_8048_b42c_85f0f4766ca8
  d59d7d8d_3b10_c59e_51f8_a084d46b51f4["makeAttrsMap()"]
  61cd312b_0f3f_8048_b42c_85f0f4766ca8 -->|calls| d59d7d8d_3b10_c59e_51f8_a084d46b51f4
  style 61cd312b_0f3f_8048_b42c_85f0f4766ca8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/parser/index.ts lines 67–81

export function createASTElement(
  tag: string,
  attrs: Array<ASTAttr>,
  parent: ASTElement | void
): ASTElement {
  return {
    type: 1,
    tag,
    attrsList: attrs,
    attrsMap: makeAttrsMap(attrs),
    rawAttrsMap: {},
    parent,
    children: []
  }
}

Domain

Subdomains

Frequently Asked Questions

What does createASTElement() do?
createASTElement() is a function in the vue codebase.
What does createASTElement() call?
createASTElement() calls 1 function(s): makeAttrsMap.
What calls createASTElement()?
createASTElement() is called by 3 function(s): cloneASTElement, parse, processSlotContent.

Analyze Your Own Codebase

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

Try Supermodel Free