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

Function removeHelper

packages/compiler-core/src/transform.ts:212–222  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

210 return name
211 },
212 removeHelper(name) {
213 const count = context.helpers.get(name)
214 if (count) {
215 const currentCount = count - 1
216 if (!currentCount) {
217 context.helpers.delete(name)
218 } else {
219 context.helpers.set(name, currentCount)
220 }
221 }
222 },
223 helperString(name) {
224 return `_${helperNameMap[context.helper(name)]}`
225 },

Callers 2

convertToBlockFunction · 0.85
vFor.tsFile · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected