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

Function processSelectChildren

packages/compiler-ssr/src/transforms/ssrVModel.ts:42–52  ·  view source on GitHub ↗
(children: TemplateChildNode[])

Source from the content-addressed store, hash-verified

40 }
41
42 const processSelectChildren = (children: TemplateChildNode[]) => {
43 children.forEach(child => {
44 if (child.type === NodeTypes.ELEMENT) {
45 processOption(child as PlainElementNode)
46 } else if (child.type === NodeTypes.FOR) {
47 processSelectChildren(child.children)
48 } else if (child.type === NodeTypes.IF) {
49 child.branches.forEach(b => processSelectChildren(b.children))
50 }
51 })
52 }
53
54 function processOption(plainNode: PlainElementNode) {
55 if (plainNode.tag === 'option') {

Callers 2

processOptionFunction · 0.85
ssrTransformModelFunction · 0.85

Calls 2

processOptionFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected