Home / Function/ genDOMPropSegments() — vue Function Reference

genDOMPropSegments() — vue Function Reference

Architecture documentation for the genDOMPropSegments() function in modules.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  fa544f11_0c48_ef02_0a1e_2942ccbf1f8a["genDOMPropSegments()"]
  480317ab_b1ef_f907_829e_f74af9eae452["elementToOpenTagSegments()"]
  480317ab_b1ef_f907_829e_f74af9eae452 -->|calls| fa544f11_0c48_ef02_0a1e_2942ccbf1f8a
  dfde1ef6_e1eb_f805_b004_15ea50f02cb9["isRenderableAttr()"]
  fa544f11_0c48_ef02_0a1e_2942ccbf1f8a -->|calls| dfde1ef6_e1eb_f805_b004_15ea50f02cb9
  3561315d_c822_c2b2_64d4_ead55e1cfeef["genAttrSegment()"]
  fa544f11_0c48_ef02_0a1e_2942ccbf1f8a -->|calls| 3561315d_c822_c2b2_64d4_ead55e1cfeef
  style fa544f11_0c48_ef02_0a1e_2942ccbf1f8a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/modules.ts lines 39–54

export function genDOMPropSegments(
  props: Array<ASTAttr>,
  attrs: Array<ASTAttr> | null | undefined
): Array<StringSegment> {
  const segments: StringSegment[] = []
  props.forEach(({ name, value }) => {
    name = propsToAttrMap[name] || name.toLowerCase()
    if (
      isRenderableAttr(name) &&
      !(attrs && attrs.some(a => a.name === name))
    ) {
      segments.push(genAttrSegment(name, value))
    }
  })
  return segments
}

Subdomains

Frequently Asked Questions

What does genDOMPropSegments() do?
genDOMPropSegments() is a function in the vue codebase.
What does genDOMPropSegments() call?
genDOMPropSegments() calls 2 function(s): genAttrSegment, isRenderableAttr.
What calls genDOMPropSegments()?
genDOMPropSegments() is called by 1 function(s): elementToOpenTagSegments.

Analyze Your Own Codebase

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

Try Supermodel Free