parameters: (self, value, default)
return_statement: return swt
docstring: Create a switch-case with a single *default* target.
docstring_summary: Create a switch-case with a single *default* target.
docstring_tokens: Create a switch - case with a single * default * target .
function: def switch(self, value, default):
          """
          Create a switch-case with a single *default* target.
          """
          swt = instructions.SwitchInstr(self.block, 'switch', value, default)
          self._set_terminator(swt)
          return swt
function_tokens: def switch ( self , value , default ) : swt = instructions . SwitchInstr ( self . block , 'switch' , value , default ) self . _set_terminator ( swt ) return swt