3 ms·
Is there any bound to the number of cases that might be generated in that switch?
by acjohnson55 13y ago
Is there any bound to the number of cases that might be generated in that switch?
- bnjmn 13y agoThis is hand-wavy for sure, but I don't think Emitter.prototype.emit is called more than once per AST node, and the number of cases should be less than the number of calls to .emit, so there should be fewer cases than AST nodes (which is a statically knowable number).