MCPcopy
hub / github.com/vuejs/core / serializeText

Function serializeText

packages/runtime-test/src/serialize.ts:59–69  ·  view source on GitHub ↗
(
  node: TestText | TestComment,
  indent: number,
  depth: number,
)

Source from the content-addressed store, hash-verified

57}
58
59function serializeText(
60 node: TestText | TestComment,
61 indent: number,
62 depth: number,
63): string {
64 const padding = indent ? ` `.repeat(indent).repeat(depth) : ``
65 return (
66 padding +
67 (node.type === TestNodeTypes.COMMENT ? `<!--${node.text}-->` : node.text)
68 )
69}

Callers 1

serializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected