accept method

void accept()

Should be invoked when results of compilation are accepted by the client.

Either accept or reject should be called after every compile call.

Implementation

void accept() {
  if (_state != _ClientState.waitingForAcceptOrReject) {
    throw StateError(
        'Called `accept` but there was no previous compile to accept.');
  }
  _sendCommand('accept');
  _state = _ClientState.waitingForRecompile;
}