package DX::Step::MarkAsSolution;

use DX::Step::ResumeSearch;
use DX::Class;

with 'DX::Role::Step';

sub apply_to {
  my ($self, $ss) = @_;
  trace solution => [ statement => [ [ symbol => 'solution' ] ] ];
  $ss->but(
    is_solution_state => 1,
    next_step => DX::Step::ResumeSearch->new
  );
}

1;
