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.9.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.9.0 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.9.0.dev.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.9.0.dev.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.3 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.0 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.0.pre.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.0.pre.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.0.dev.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.8.0.dev.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.7.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.7.0 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.7.0.dev.3 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.7.0.dev.2 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.7.0.dev.1 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.6.0 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.6.0.pre.4 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb
steep-1.6.0.pre.3 lib/steep/diagnostic/deprecated/else_on_exhaustive_case.rb