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

Function pushRefVForMarker

packages/compiler-core/src/transforms/transformElement.ts:416–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414
415 // mark template ref on v-for
416 const pushRefVForMarker = () => {
417 if (context.scopes.vFor > 0) {
418 properties.push(
419 createObjectProperty(
420 createSimpleExpression('ref_for', true),
421 createSimpleExpression('true'),
422 ),
423 )
424 }
425 }
426
427 const analyzePatchFlag = ({ key, value }: Property) => {
428 if (isStaticExp(key)) {

Callers 1

buildPropsFunction · 0.85

Calls 3

createObjectPropertyFunction · 0.90
createSimpleExpressionFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected