code: function parseSwitchCase() {
          var test,
              consequent = [],
              statement;
  
          if (matchKeyword('default')) {
              lex();
              test = null;
          } else {
              expectKeyword('case');
              test = parseExpression();
          }
          expect(':');
  
          while (index < length) {
              if (match('}') || matchKeyword('default') || matchKeyword('case')) {
                  break;
              }
              statement = parseStatement();
              if (typeof statement === 'undefined') {
                  break;
              }
              consequent.push(statement);
          }
  
          return {
              type: Syntax.SwitchCase,
              test: test,
              consequent: consequent
          };
      }
docs: 12.10 The swith statement