(expr)
| 18254 | |
| 18255 | // Flatten simple OR chain to array of label names |
| 18256 | function flattenSimpleOrChain(expr) { |
| 18257 | if (expr.type === 'LabelName') return [expr.name]; |
| 18258 | if (expr.type === 'LabelOr') { |
| 18259 | return [...flattenSimpleOrChain(expr.left), ...flattenSimpleOrChain(expr.right)]; |
| 18260 | } |
| 18261 | return []; |
| 18262 | } |
| 18263 | |
| 18264 | peg$result = peg$startRuleFunction(); |
| 18265 |