Sha256: 38b97e88eb977aa87df61204d075cf24ecbb82962e92d632a940da4f6334327c

Contents?: true

Size: 844 Bytes

Versions: 18

Compression:

Stored size: 844 Bytes

Contents

module Steep
  module Subtyping
    class VariableVariance
      attr_reader covariants: Set[Symbol]

      attr_reader contravariants: Set[Symbol]

      def initialize: (covariants: Set[Symbol], contravariants: Set[Symbol]) -> void

      def covariant?: (Symbol var) -> bool

      def contravariant?: (Symbol var) -> bool

      def invariant?: (Symbol var) -> bool

      def self.from_type: (AST::Types::t) -> VariableVariance

      def self.from_method_type: (Interface::MethodType method_type) -> VariableVariance

      def self.add_params: (Interface::Function::Params params, block: bool, covariants: Set[Symbol], contravariants: Set[Symbol]) -> void

      def self.add_type: (AST::Types::t `type`, variance: :covariant | :contravariant | :invariant, covariants: Set[Symbol], contravariants: Set[Symbol]) -> void
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/subtyping/variable_variance.rbs
steep-1.7.0.dev.2 sig/steep/subtyping/variable_variance.rbs
steep-1.7.0.dev.1 sig/steep/subtyping/variable_variance.rbs
steep-1.6.0 sig/steep/subtyping/variable_variance.rbs
steep-1.6.0.pre.4 sig/steep/subtyping/variable_variance.rbs
steep-1.6.0.pre.3 sig/steep/subtyping/variable_variance.rbs
steep-1.6.0.pre.2 sig/steep/subtyping/variable_variance.rbs
steep-1.6.0.pre.1 sig/steep/subtyping/variable_variance.rbs
steep-1.5.3 sig/steep/subtyping/variable_variance.rbs
steep-1.5.2 sig/steep/subtyping/variable_variance.rbs
steep-1.5.1 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0.pre.6 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0.pre.5 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0.pre.4 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0.pre.3 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0.pre.2 sig/steep/subtyping/variable_variance.rbs
steep-1.5.0.pre.1 sig/steep/subtyping/variable_variance.rbs