$self->scan_comments();
# Find nested pairs of container tokens for any welding. This information
- # is also needed for adding semicolons when welding is done, so it is split
- # apart from the welding step.
+ # is also needed for adding semicolons, so it is split apart from the
+ # welding step. But we need to do it even if we are not welding so that we
+ # do not introduce a semicolon in a place where it would prevent welding in
+ # the future. So this is necessary but a little inefficient if -wn is not
+ # used in this run.
$self->find_nested_pairs();
# Make sure everything looks good
# CODE SECTION 10: Summary
# sub report_anything_unusual
+##################################################################
# CODE SECTION 1: Preliminary code, global definitions and sub new
+##################################################################
sub AUTOLOAD {
return $self;
}
+#################################
# CODE SECTION 2: Basic Utilities
+#################################
sub flush {
return $maximum_line_length;
}
+######################################################
# CODE SECTION 3: Code to accept input and form groups
+######################################################
sub push_group_line {
return $level;
}
+###############################################
# CODE SECTION 4: Code to process comment lines
+###############################################
sub _flush_comment_lines {
return;
}
+######################################################
# CODE SECTION 5: Code to process groups of code lines
+######################################################
sub _flush_group_lines {
return;
}
+###############################
# CODE SECTION 6: Output Step A
+###############################
sub valign_output_step_A {
return $nlines + $file_writer_object->get_output_line_number();
}
+###############################
# CODE SECTION 7: Output Step B
+###############################
{ ## closure for sub valign_output_step_B
}
}
+###############################
# CODE SECTION 8: Output Step C
+###############################
{ ## closure for sub valign_output_step_C
}
}
+###############################
# CODE SECTION 9: Output Step D
+###############################
sub valign_output_step_D {
}
} # end get_leading_string
+##########################
# CODE SECTION 10: Summary
+##########################
sub report_anything_unusual {
my $self = shift;