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

Function createObjectProperty

packages/compiler-core/src/ast.ts:673–683  ·  view source on GitHub ↗
(
  key: Property['key'] | string,
  value: Property['value'],
)

Source from the content-addressed store, hash-verified

671}
672
673export function createObjectProperty(
674 key: Property['key'] | string,
675 value: Property['value'],
676): Property {
677 return {
678 type: NodeTypes.JS_PROPERTY,
679 loc: locStub,
680 key: isString(key) ? createSimpleExpression(key, true) : key,
681 value,
682 }
683}
684
685export function createSimpleExpression(
686 content: SimpleExpressionNode['content'],

Callers 15

transformVTextFunction · 0.90
transformOnFunction · 0.90
transformVHtmlFunction · 0.90
transformBindFunction · 0.90
transformOnFunction · 0.90
buildSlotsFunction · 0.90
buildDefaultSlotPropertyFunction · 0.90
buildDynamicSlotFunction · 0.90
vFor.tsFile · 0.90
transformModelFunction · 0.90
pushRefVForMarkerFunction · 0.90

Calls 2

isStringFunction · 0.90
createSimpleExpressionFunction · 0.85

Tested by 1

fooFunction · 0.72