(children: TemplateChildNode[])
| 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') { |
no test coverage detected