package DX::Op::Materialize;

use Moo;

with 'DX::Role::Op';

sub run {
  my ($self, $state) = @_;
  foreach my $k (keys %{$state->scope}) {
    my $var = $state->scope_var($k);
    next unless $var->is_bound;
    $state->resolve_value($var);
  }
  $state->then($self->next);
}

1;
