private function _processSwitchDefault() {
		// If we already are in a "case", we remove it from the stack
		if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_CASE || $this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_DEFAULT) {

			// Test if the previous case had a break
			$this->_checkSwitchCaseNeedBreak();

			$this->statementStack->pop();
		}

		// We flag the "SWITCH" stack item as having a default
		$this->statementStack->getCurrentStackItem()->switchHasDefault = true;

		// We store the control statement in the stack
		$stackitem = new StatementItem();
		$stackitem->line = $this->lineNumber;
		$stackitem->type = "DEFAULT";
		$stackitem->name = "default";
		$this->statementStack->push($stackitem);
	}
private function _processSwitchDefault() {
		// If we already are in a "case", we remove it from the stack
		if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_CASE || $this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_DEFAULT) {

			// Test if the previous case had a break
			$this->_checkSwitchCaseNeedBreak();

			$this->statementStack->pop();
		}

		// We flag the "SWITCH" stack item as having a default
		$this->statementStack->getCurrentStackItem()->switchHasDefault = true;

		// We store the control statement in the stack
		$stackitem = new StatementItem();
		$stackitem->line = $this->lineNumber;
		$stackitem->type = "DEFAULT";
		$stackitem->name = "default";
		$this->statementStack->push($stackitem);
	}
private function _processSwitchDefault ( ) { // If we already are in a "case", we remove it from the stack if ( $ this -> statementStack -> getCurrentStackItem ( ) -> type === StatementItem :: TYPE_CASE || $ this -> statementStack -> getCurrentStackItem ( ) -> type === StatementItem :: TYPE_DEFAULT ) { // Test if the previous case had a break $ this -> _checkSwitchCaseNeedBreak ( ) ; $ this -> statementStack -> pop ( ) ; } // We flag the "SWITCH" stack item as having a default $ this -> statementStack -> getCurrentStackItem ( ) -> switchHasDefault = true ; // We store the control statement in the stack $ stackitem = new StatementItem ( ) ; $ stackitem -> line = $ this -> lineNumber ; $ stackitem -> type = "DEFAULT" ; $ stackitem -> name = "default" ; $ this -> statementStack -> push ( $ stackitem ) ; }
Process a default statement.
Process a default statement .