class SyntaxTree::Parser
def on_heredoc_end(value)
:call-seq:
def on_heredoc_end(value) heredoc = @heredocs[-1] location = Location.token( line: lineno, char: char_pos, column: current_column, size: value.size ) heredoc_end = HeredocEnd.new(value: value.chomp, location: location) @heredocs[-1] = Heredoc.new( beginning: heredoc.beginning, ending: heredoc_end, dedent: heredoc.dedent, parts: heredoc.parts, location: Location.new( start_line: heredoc.location.start_line, start_char: heredoc.location.start_char, start_column: heredoc.location.start_column, end_line: location.end_line, end_char: location.end_char, end_column: location.end_column ) ) end