Rewrite a chain of if statements as a switch, and add a default
case that asserts false.

This tells the analyzer that cornerRadius is always set.