I think this means using a visitor to extract a CFG and then analyzing the CFG. We could make the CFG extractor reusable.
I think we should disallow case fall-through in switch statements. This means ensuring that all paths down a case end in a break. For now, I'm implementing C semantics, which treat fallthrough as a feature.
"and then analyzing the CFG" And doing what with it?
Migrated to https://github.com/gpuweb/WHLSL/issues/179