Home / Class/ StringNode Class — vue Architecture

StringNode Class — vue Architecture

Architecture documentation for the StringNode class in runtime-helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  9d17d689_5de7_9af4_7308_e3be6bfff375["StringNode"]
  b4035da1_cf86_9027_2643_66e42fd3924f["runtime-helpers.ts"]
  9d17d689_5de7_9af4_7308_e3be6bfff375 -->|defined in| b4035da1_cf86_9027_2643_66e42fd3924f
  d28820e4_d478_5ba6_d942_62e5dc438b1e["constructor()"]
  9d17d689_5de7_9af4_7308_e3be6bfff375 -->|method| d28820e4_d478_5ba6_d942_62e5dc438b1e

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts lines 49–75

class StringNode {
  isString: boolean
  open: string
  close: string | undefined
  children: Array<any> | undefined

  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
    }
  }
}

Frequently Asked Questions

What is the StringNode class?
StringNode is a class in the vue codebase, defined in packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts.
Where is StringNode defined?
StringNode is defined in packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts at line 49.

Analyze Your Own Codebase

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

Try Supermodel Free