Sha256: 0ffb969e3e0802e0835f18bf74c5e603ac0817f6916e4a9bade455d448082fbc

Contents?: true

Size: 1.55 KB

Versions: 4

Compression:

Stored size: 1.55 KB

Contents

module RBS
  class Subtractor
    type decl_with_members = AST::Declarations::Class | AST::Declarations::Module

    @minuend: Array[AST::Declarations::t]
    @subtrahend: Environment

    def initialize: (Array[AST::Declarations::t] minuend, Environment subtrahend) -> void

    def call: (?Array[AST::Declarations::t], ?context: Resolver::context) -> Array[AST::Declarations::t]

    private def filter_members: (decl_with_members, context: Resolver::context) -> decl_with_members?

    private def member_exist?: (TypeName owner, AST::Members::t, context: Resolver::context) -> boolish

    private def method_exist?: (TypeName owner, Symbol method_name, AST::Members::MethodDefinition::kind) -> boolish

    private def ivar_exist?: (TypeName owner, Symbol ivar_name, AST::Members::Attribute::kind) -> boolish

    private def cvar_exist?: (TypeName owner, Symbol cvar_name) -> boolish

    private def each_member: (TypeName owner) { (AST::Members::t | AST::Declarations::t) -> void } -> void
                           | (TypeName owner) -> Enumerator[(AST::Members::t | AST::Declarations::t), void]

    private def mixin_exist?: (TypeName owner, AST::Members::Include | AST::Members::Extend | AST::Members::Prepend, context: Resolver::context) -> boolish

    private def update_decl: (decl_with_members, members: Array[AST::Declarations::t | AST::Members::t]) -> decl_with_members

    private def absolute_typename: (TypeName, context: Resolver::context) -> TypeName

    private def typename_candidates: (TypeName, context: Resolver::context) -> Array[TypeName]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbs-3.1.3 sig/subtractor.rbs
rbs-3.1.2 sig/subtractor.rbs
rbs-3.1.1 sig/subtractor.rbs
rbs-3.1.0 sig/subtractor.rbs