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

Function cache

packages/compiler-core/src/transform.ts:303–312  ·  view source on GitHub ↗
(exp, isVNode = false, inVOnce = false)

Source from the content-addressed store, hash-verified

301 return identifier
302 },
303 cache(exp, isVNode = false, inVOnce = false) {
304 const cacheExp = createCacheExpression(
305 context.cached.length,
306 exp,
307 isVNode,
308 inVOnce,
309 )
310 context.cached.push(cacheExp)
311 return cacheExp
312 },
313 }
314
315 if (__COMPAT__) {

Callers

nothing calls this directly

Calls 2

createCacheExpressionFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected