Sha256: 38060a9f826a6d996540b9cfbee33afa4a4aef0b5af0d6309c73e92a02571302

Contents?: true

Size: 471 Bytes

Versions: 32

Compression:

Stored size: 471 Bytes

Contents

Steep.logger.error "Diagnostic `Ruby::ElseOnExhaustiveCase` is deprecated. Use `Ruby::UnreachableBranch` instead."

module Steep
  module Diagnostic
    module Ruby
      class ElseOnExhaustiveCase < Base
        attr_reader :type

        def initialize(node:, type:)
          super(node: node)
          @type = type
        end

        def header_line
          "The branch is unreachable because the condition is exhaustive"
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
steep-1.6.0.pre.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.6.0.pre.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.3 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0.pre.6 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0.pre.5 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0.pre.4 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0.pre.3 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0.pre.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.5.0.pre.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb