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

Method getString

packages/compiler-sfc/src/script/context.ts:135–140  ·  view source on GitHub ↗
(node: Node, scriptSetup = true)

Source from the content-addressed store, hash-verified

133 }
134
135 getString(node: Node, scriptSetup = true): string {
136 const block = scriptSetup
137 ? this.descriptor.scriptSetup!
138 : this.descriptor.script!
139 return block.content.slice(node.start!, node.end!)
140 }
141
142 warn(msg: string, node: Node, scope?: TypeScope): void {
143 warn(generateError(msg, node, this, scope))

Callers 6

genRuntimePropsFunction · 0.80
extractRuntimePropsFunction · 0.80
genRuntimePropFromTypeFunction · 0.80
processDefineModelFunction · 0.80
genRuntimeEmitsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected