class RuboCop::ErrorWithAnalyzedFileLocation
def initialize(cause:, node:, cop:)
def initialize(cause:, node:, cop:) super() @cause = cause @cop = cop @location = node.is_a?(RuboCop::AST::Node) ? node.loc : node end
def initialize(cause:, node:, cop:) super() @cause = cause @cop = cop @location = node.is_a?(RuboCop::AST::Node) ? node.loc : node end