Sha256: 182c586aed52eec3d9efe144856692f52828d22ec3d0c7efc4d01d761130d8f6

Contents?: true

Size: 801 Bytes

Versions: 44

Compression:

Stored size: 801 Bytes

Contents

# frozen_string_literal: true

module RBS
  module AST
    module Directives
      class Base
      end

      class Use < Base
        class SingleClause
          attr_reader :type_name, :new_name, :location

          def initialize(type_name:, new_name:, location:)
            @type_name = type_name
            @new_name = new_name
            @location = location
          end
        end

        class WildcardClause
          attr_reader :namespace, :location

          def initialize(namespace:, location:)
            @location = location
            @namespace = namespace
          end
        end

        attr_reader :clauses, :location

        def initialize(clauses:, location:)
          @clauses = clauses
          @location = location
        end
      end

    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rbs-3.8.1 lib/rbs/ast/directives.rb
rbs-3.8.0 lib/rbs/ast/directives.rb
rbs-3.8.0.pre.1 lib/rbs/ast/directives.rb
rbs-3.7.0.pre.1 lib/rbs/ast/directives.rb
rbs-3.7.0.dev.1 lib/rbs/ast/directives.rb
rbs-3.6.1 lib/rbs/ast/directives.rb
rbs-3.6.0 lib/rbs/ast/directives.rb
rbs-3.6.0.pre.3 lib/rbs/ast/directives.rb
rbs-3.6.0.pre.2 lib/rbs/ast/directives.rb
rbs-3.6.0.pre.1 lib/rbs/ast/directives.rb
rbs-3.6.0.dev.1 lib/rbs/ast/directives.rb
rbs-3.5.3 lib/rbs/ast/directives.rb
rbs-3.5.2 lib/rbs/ast/directives.rb
rbs-3.5.1 lib/rbs/ast/directives.rb
rbs-3.5.1.pre.1 lib/rbs/ast/directives.rb
rbs-3.5.0 lib/rbs/ast/directives.rb
rbs-3.5.0.pre.2 lib/rbs/ast/directives.rb
rbs-3.5.0.pre.1 lib/rbs/ast/directives.rb
rbs-3.4.4 lib/rbs/ast/directives.rb
rbs-3.4.3 lib/rbs/ast/directives.rb