Home / Function/ genText() — vue Function Reference

genText() — vue Function Reference

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

Function typescript VueCore GlobalAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  7df80a50_6be2_10f2_c0a4_90f0486f587d["genText()"]
  6a18399e_553e_fef8_6a39_746f79f94bd2["index.ts"]
  7df80a50_6be2_10f2_c0a4_90f0486f587d -->|defined in| 6a18399e_553e_fef8_6a39_746f79f94bd2
  574cf366_be5c_8e5d_b72b_8e5c7974e7ea["genNode()"]
  574cf366_be5c_8e5d_b72b_8e5c7974e7ea -->|calls| 7df80a50_6be2_10f2_c0a4_90f0486f587d
  1165faf4_c5af_d40b_76bf_f3e684d1c07c["transformSpecialNewlines()"]
  7df80a50_6be2_10f2_c0a4_90f0486f587d -->|calls| 1165faf4_c5af_d40b_76bf_f3e684d1c07c
  style 7df80a50_6be2_10f2_c0a4_90f0486f587d 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

Called By

Frequently Asked Questions

What does genText() do?
genText() is a function in the vue codebase, defined in src/compiler/codegen/index.ts.
Where is genText() defined?
genText() is defined in src/compiler/codegen/index.ts at line 593.
What does genText() call?
genText() calls 1 function(s): transformSpecialNewlines.
What calls genText()?
genText() is called by 1 function(s): genNode.

Analyze Your Own Codebase

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

Try Supermodel Free