package Perl::Tidy::IndentationItem;
use strict;
use warnings;
-our $VERSION = '20220217';
+our $VERSION = '20221112';
BEGIN {
_stack_depth_ => $i++,
_K_begin_line_ => $i++,
_arrow_count_ => $i++,
+ _standard_spaces_ => $i++,
+ _K_extra_space_ => $i++,
};
}
$self->[_stack_depth_] = $input_hash{stack_depth};
$self->[_K_begin_line_] = $input_hash{K_begin_line};
$self->[_arrow_count_] = 0;
+ $self->[_standard_spaces_] = $input_hash{standard_spaces};
+ $self->[_K_extra_space_] = $input_hash{K_extra_space};
bless $self, $class;
return $self;
return $_[0]->[_spaces_];
}
+sub get_standard_spaces {
+ return $_[0]->[_standard_spaces_];
+}
+
sub get_marked {
return $_[0]->[_marked_];
}
sub decrease_available_spaces {
my ( $self, $value ) = @_;
+
if ( defined($value) ) {
$self->[_available_spaces_] -= $value;
}
return $_[0]->[_K_begin_line_];
}
+sub get_K_extra_space {
+ return $_[0]->[_K_extra_space_];
+}
+
sub set_have_child {
my ( $self, $value ) = @_;
if ( defined($value) ) {