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

Function checkDuplicatedValue

packages/compiler-dom/src/transforms/vModel.ts:36–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 function checkDuplicatedValue() {
37 const value = findDir(node, 'bind')
38 if (value && isStaticArgOf(value.arg, 'value')) {
39 context.onError(
40 createDOMCompilerError(
41 DOMErrorCodes.X_V_MODEL_UNNECESSARY_VALUE,
42 value.loc,
43 ),
44 )
45 }
46 }
47
48 const { tag } = node
49 const isCustomElement = context.isCustomElement(tag)

Callers 1

transformModelFunction · 0.70

Calls 3

findDirFunction · 0.90
isStaticArgOfFunction · 0.90
createDOMCompilerErrorFunction · 0.90

Tested by

no test coverage detected