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
  e463e0db_7fce_3c6e_bf0a_b5d5f6d939c8["constructor()"]
  f9df52b2_60e9_f19b_7f1f_22f2c75fa078["simpleNormalizeChildren()"]
  e463e0db_7fce_3c6e_bf0a_b5d5f6d939c8 -->|calls| f9df52b2_60e9_f19b_7f1f_22f2c75fa078
  5622921f_54b9_3c35_daaf_e1a5562f01a0["normalizeChildren()"]
  e463e0db_7fce_3c6e_bf0a_b5d5f6d939c8 -->|calls| 5622921f_54b9_3c35_daaf_e1a5562f01a0
  6123205e_b22d_9212_029b_bd500bbb86f6["constructor()"]
  e463e0db_7fce_3c6e_bf0a_b5d5f6d939c8 -->|calls| 6123205e_b22d_9212_029b_bd500bbb86f6
  style e463e0db_7fce_3c6e_bf0a_b5d5f6d939c8 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