src/parser/method_finder.rb
# Calculates how many statements were added, deleted or unchanged (will not work for modified since it 
# just counts all the statements that are part of the method).
# Also does not take into account comments vs code
Calculates how many statements were added, deleted or unchanged (will not work for modified since it
just counts all the statements that are part of the method).
Also does not take into account comments vs code
Calculates how many statements were added deleted or unchanged ( will not work for modified since it just counts all the statements that are part of the method ) . Also does not take into account comments vs code
def method_length(method_end)
        length = 0
        if @comment_start != -1
            length += comment_length
        end
        length += method_end - @actual_start
        length += 1
    end
def method_length ( method_end ) length = 0 if @comment_start != - 1 length += comment_length end length += method_end - @actual_start length += 1 end
Calculates how many statements were added, deleted or unchanged (will not work for modified since it
just counts all the statements that are part of the method).
Calculates how many statements were added deleted or unchanged ( will not work for modified since it just counts all the statements that are part of the method ) .
# Capture comments within the count # Convert from index to length
method_end
<not_specific>