private void removeCase ( Node switchNode , Node caseNode ) { NodeUtil . redeclareVarsInsideBranch ( caseNode ) ; switchNode . removeChild ( caseNode ) ; reportChangeToEnclosingScope ( switchNode ) ; }
Remove the case from the switch redeclaring any variables declared in it .