class SyntaxTree::Parser
def on_sclass(target, bodystmt)
:call-seq:
def on_sclass(target, bodystmt) beginning = consume_keyword(:class) ending = consume_keyword(:end) start_char = find_next_statement_start(target.location.end_char) bodystmt.bind( self, start_char, start_char - line_counts[target.location.start_line - 1].start, ending.location.start_char, ending.location.start_column ) SClass.new( target: target, bodystmt: bodystmt, location: beginning.location.to(ending.location) ) end