Statements: Labeled Statements

There are two kinds of labeled statement: a case label and a default label, and these can only occur inside a switch statement. Refer to that statement for more information and examples.

Note that Hack does not support a goto statement, so no labels are needed for that.