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

Function findValueBinding

packages/compiler-ssr/src/transforms/ssrVModel.ts:193–200  ·  view source on GitHub ↗
(node: PlainElementNode)

Source from the content-addressed store, hash-verified

191}
192
193function findValueBinding(node: PlainElementNode): ExpressionNode {
194 const valueBinding = findProp(node, 'value')
195 return valueBinding
196 ? valueBinding.type === NodeTypes.DIRECTIVE
197 ? valueBinding.exp!
198 : createSimpleExpression(valueBinding.value!.content, true)
199 : createSimpleExpression(`null`, false)
200}

Callers 2

processOptionFunction · 0.85
ssrTransformModelFunction · 0.85

Calls 2

findPropFunction · 0.85
createSimpleExpressionFunction · 0.85

Tested by

no test coverage detected