(node: Node)
| 2031 | } |
| 2032 | |
| 2033 | function tooComplex(node: Node): ParseForSecurityResult { |
| 2034 | const reason = |
| 2035 | node.type === 'ERROR' |
| 2036 | ? 'Parse error' |
| 2037 | : DANGEROUS_TYPES.has(node.type) |
| 2038 | ? `Contains ${node.type}` |
| 2039 | : `Unhandled node type: ${node.type}` |
| 2040 | return { kind: 'too-complex', reason, nodeType: node.type } |
| 2041 | } |
| 2042 | |
| 2043 | // ──────────────────────────────────────────────────────────────────────────── |
| 2044 | // Post-argv semantic checks |
no test coverage detected