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

Function createCacheExpression

packages/compiler-core/src/ast.ts:774–789  ·  view source on GitHub ↗
(
  index: number,
  value: JSChildNode,
  needPauseTracking: boolean = false,
  inVOnce: boolean = false,
)

Source from the content-addressed store, hash-verified

772}
773
774export function createCacheExpression(
775 index: number,
776 value: JSChildNode,
777 needPauseTracking: boolean = false,
778 inVOnce: boolean = false,
779): CacheExpression {
780 return {
781 type: NodeTypes.JS_CACHE_EXPRESSION,
782 index,
783 value,
784 needPauseTracking: needPauseTracking,
785 inVOnce,
786 needArraySpread: false,
787 loc: locStub,
788 }
789}
790
791export function createBlockStatement(
792 body: BlockStatement['body'],

Callers 2

cacheFunction · 0.90
codegen.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected