Home / Function/ constructor() — vue Function Reference

constructor() — vue Function Reference

Architecture documentation for the constructor() function in runtime-helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287["constructor()"]
  cf26be84_71e4_8cfb_a58c_45a157e65d3d["simpleNormalizeChildren()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287 -->|calls| cf26be84_71e4_8cfb_a58c_45a157e65d3d
  00cce470_87b6_9803_7f03_3dd6786130a1["normalizeChildren()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287 -->|calls| 00cce470_87b6_9803_7f03_3dd6786130a1
  7198d4bc_20c8_d177_6a35_e0ecc629debd["constructor()"]
  e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287 -->|calls| 7198d4bc_20c8_d177_6a35_e0ecc629debd
  style e7b32c4a_f6fb_aeaf_60fb_86f2dc39a287 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts lines 55–74

  constructor(
    open: string,
    close?: string,
    children?: Array<any>,
    normalizationType?: number
  ) {
    this.isString = true
    this.open = open
    this.close = close
    if (children) {
      this.children =
        normalizationType === 1
          ? simpleNormalizeChildren(children)
          : normalizationType === 2
          ? normalizeChildren(children)
          : children
    } else {
      this.children = void 0
    }
  }

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the vue codebase.
What does constructor() call?
constructor() calls 3 function(s): constructor, normalizeChildren, simpleNormalizeChildren.

Analyze Your Own Codebase

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

Try Supermodel Free