lib/dead_end/code_search.rb
# Parses the most indented lines into blocks that are marked
# and added to the frontier
Parses the most indented lines into blocks that are marked
and added to the frontier
Parses the most indented lines into blocks that are marked and added to the frontier
def visit_new_blocks
      max_indent = frontier.next_indent_line&.indent
      while (line = frontier.next_indent_line) && (line.indent == max_indent)
        @parse_blocks_from_indent_line.each_neighbor_block(frontier.next_indent_line) do |block|
          record(block: block, name: "add")
          block.mark_invisible if block.valid?
          push(block, name: "add")
        end
      end
    end
def visit_new_blocks max_indent = frontier . next_indent_line &. indent while ( line = frontier . next_indent_line ) && ( line . indent == max_indent ) @parse_blocks_from_indent_line . each_neighbor_block ( frontier . next_indent_line ) do | block | record ( block : block , name : "add" ) block . mark_invisible if block . valid? push ( block , name : "add" ) end end end
Parses the most indented lines into blocks that are marked
and added to the frontier
Parses the most indented lines into blocks that are marked and added to the frontier