Sha256: cb827f84b689aa474b68397d64080972948c27ba6d7311762d3a4b89d55de043

Contents?: true

Size: 1.77 KB

Versions: 18

Compression:

Stored size: 1.77 KB

Contents

module RBS
  class Sorter
    include RBS::AST

    type member = AST::Declarations::Class::member
                | AST::Declarations::Module::member
                | AST::Declarations::Interface::member

    attr_reader path: Pathname

    attr_reader stdout: IO

    def initialize: (Pathname path, ?stdout: IO) -> void

    def run: () -> void

    type partitioned = {
      type_alias_decls: Array[AST::Declarations::TypeAlias],
      constant_decls: Array[AST::Declarations::Constant],
      class_decls: Array[AST::Declarations::Class | AST::Declarations::Module | AST::Declarations::Interface],
      mixin_includes: Array[AST::Members::Include],
      mixin_prepends: Array[AST::Members::Prepend],
      mixin_extends: Array[AST::Members::Extend],
      class_variables: Array[AST::Members::ClassVariable],
      class_instance_variables: Array[AST::Members::ClassInstanceVariable],
      instance_variables: Array[AST::Members::InstanceVariable],
      singleton_attributes: Array[AST::Members::AttrAccessor | AST::Members::AttrWriter | AST::Members::AttrReader],
      instance_attributes: Array[AST::Members::AttrAccessor | AST::Members::AttrWriter | AST::Members::AttrReader],
      module_functions: Array[AST::Members::MethodDefinition],
      singleton_new_methods: Array[AST::Members::MethodDefinition],
      public_singleton_methods: Array[AST::Members::MethodDefinition | AST::Members::Alias],
      private_singleton_methods: Array[AST::Members::MethodDefinition],
      instance_initialize_methods: Array[AST::Members::MethodDefinition],
      public_instance_methods: Array[AST::Members::MethodDefinition | AST::Members::Alias],
      private_instance_methods: Array[AST::Members::MethodDefinition],
      other_decls: Array[member]
    }

    def sort_decl!: (member decl) -> void
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rbs-3.5.3 sig/sorter.rbs
rbs-3.5.2 sig/sorter.rbs
rbs-3.5.1 sig/sorter.rbs
rbs-3.5.1.pre.1 sig/sorter.rbs
rbs-3.5.0 sig/sorter.rbs
rbs-3.5.0.pre.2 sig/sorter.rbs
rbs-3.5.0.pre.1 sig/sorter.rbs
rbs-3.4.4 sig/sorter.rbs
rbs-3.4.3 sig/sorter.rbs
rbs-3.4.2 sig/sorter.rbs
rbs-3.4.1 sig/sorter.rbs
rbs-3.4.0 sig/sorter.rbs
rbs-3.4.0.pre.1 sig/sorter.rbs
rbs-3.3.2 sig/sorter.rbs
rbs-3.3.1 sig/sorter.rbs
rbs-3.3.0 sig/sorter.rbs
rbs-3.3.0.pre.2 sig/sorter.rbs
rbs-3.3.0.pre.1 sig/sorter.rbs