class Steep::AST::Ignore::IgnoreLine

def ignored_diagnostics

def ignored_diagnostics
  if raw_diagnostics.empty?
    return :all
  end
  if raw_diagnostics.size == 1 && raw_diagnostics.fetch(0).source == "all"
    return :all
  end
  raw_diagnostics.map do |diagnostic|
    name = diagnostic[:name].source
    name.gsub(/\ARuby::/, "")
  end
end

def initialize(comment, diagnostics, location)

def initialize(comment, diagnostics, location)
  @comment = comment
  @raw_diagnostics = diagnostics
  @location = location
end

def line

def line
  location.start_line
end