Home / Function/ genText() — vue Function Reference

genText() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b3e7f806_a4c0_a394_b974_c564ba26cf95["genText()"]
  3e4f99aa_7e87_0706_fb7b_464f106ea018["genSSRNode()"]
  3e4f99aa_7e87_0706_fb7b_464f106ea018 -->|calls| b3e7f806_a4c0_a394_b974_c564ba26cf95
  ca4b7d11_856f_7d4c_7da6_db728ef7a6f7["genNode()"]
  ca4b7d11_856f_7d4c_7da6_db728ef7a6f7 -->|calls| b3e7f806_a4c0_a394_b974_c564ba26cf95
  55a5def2_0aa8_b39b_8af6_e1624809e5dc["transformSpecialNewlines()"]
  b3e7f806_a4c0_a394_b974_c564ba26cf95 -->|calls| 55a5def2_0aa8_b39b_8af6_e1624809e5dc
  style b3e7f806_a4c0_a394_b974_c564ba26cf95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/codegen/index.ts lines 593–599

export function genText(text: ASTText | ASTExpression): string {
  return `_v(${
    text.type === 2
      ? text.expression // no need for () because already wrapped in _s()
      : transformSpecialNewlines(JSON.stringify(text.text))
  })`
}

Domain

Subdomains

Frequently Asked Questions

What does genText() do?
genText() is a function in the vue codebase.
What does genText() call?
genText() calls 1 function(s): transformSpecialNewlines.
What calls genText()?
genText() is called by 2 function(s): genNode, genSSRNode.

Analyze Your Own Codebase

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

Try Supermodel Free