components/code/src/command.rules.js
// Pop the current rule from the state.
Pop the current rule from the state.
Pop the current rule from the state .
function popRule(state) {
		if (!state.prevState) {
			return;
		}
		state.kind = state.prevState.kind;
		state.name = state.prevState.name;
		state.type = state.prevState.type;
		state.rule = state.prevState.rule;
		state.step = state.prevState.step;
		state.needsSeperator = state.prevState.needsSeperator;
		state.prevState = state.prevState.prevState;
	}
function popRule ( state ) { if ( ! state . prevState ) { return ; } state . kind = state . prevState . kind ; state . name = state . prevState . name ; state . type = state . prevState . type ; state . rule = state . prevState . rule ; state . step = state . prevState . step ; state . needsSeperator = state . prevState . needsSeperator ; state . prevState = state . prevState . prevState ; }
Pop the current rule from the state.
Pop the current rule from the state .
// Check if there's anything to pop