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

Function checkDuplicatedValue

packages/compiler-ssr/src/transforms/ssrVModel.ts:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 const model = dir.exp!
29
30 function checkDuplicatedValue() {
31 const value = findProp(node, 'value')
32 if (value) {
33 context.onError(
34 createDOMCompilerError(
35 DOMErrorCodes.X_V_MODEL_UNNECESSARY_VALUE,
36 value.loc,
37 ),
38 )
39 }
40 }
41
42 const processSelectChildren = (children: TemplateChildNode[]) => {
43 children.forEach(child => {

Callers 1

ssrTransformModelFunction · 0.70

Calls 2

createDOMCompilerErrorFunction · 0.90
findPropFunction · 0.85

Tested by

no test coverage detected