Sha256: 4f69402c6d502c04afe11f57b54bad8b5bab84e52ca809a940f013e9159cb2a7

Contents?: true

Size: 738 Bytes

Versions: 59

Compression:

Stored size: 738 Bytes

Contents

Steep.logger.error "Diagnostic `Ruby::UnknownConstantAssigned` is deprecated. Use `Ruby::UnknownConstant` instead."

module Steep
  module Diagnostic
    module Ruby
      class UnknownConstantAssigned < Base
        attr_reader :context
        attr_reader :name

        def initialize(node:, context:, name:)
          const = node.children[0]
          loc = if const
                  const.loc.expression.join(node.loc.name)
                else
                  node.loc.name
                end
          super(node: node, location: loc)
          @context = context
          @name = name
        end

        def header_line
          "Cannot find the declaration of constant `#{name}`"
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
steep-activesupport-4-1.9.3 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.9.3 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.9.2 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.9.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.9.0 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.9.0.dev.2 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.9.0.dev.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.3 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.2 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.0 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.0.pre.2 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.0.pre.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.0.dev.2 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.8.0.dev.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.7.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.7.0 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.7.0.dev.3 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.7.0.dev.2 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb
steep-1.7.0.dev.1 lib/steep/diagnostic/deprecated/unknown_constant_assigned.rb