class SyntaxSuggest::Capture::FallingIndentLines

显示由“递减”缩进提供的代码周围的上下文

如果这是原始代码行

class OH
  def hello
    it "foo" do
  end
end

并且这是捕获的行

it "foo" do

它将产生其周围的上下文

class OH
  def hello
  end
end

示例

FallingIndentLines.new(
    block: block,
    code_lines: @code_lines
).call do |line|
  @lines_to_output << line
end