Sha256: dfe2bf5752c93ec6767c5ad9fd9bf62d8330392a773152694aeae33c8f61a549

Contents?: true

Size: 1.68 KB

Versions: 4

Compression:

Stored size: 1.68 KB

Contents

# Generated from lib/rbs_activesupport/parser.rb with RBS::Inline

module RbsActivesupport
  class Parser < ::RBS::Prototype::RB
    class MethodCall
      attr_reader name: t

      attr_reader args: Array[RubyVM::AbstractSyntaxTree::Node]

      attr_reader included: bool

      attr_reader trailing_comment: String?

      @private: bool

      # @rbs name: t
      # @rbs args: Array[RubyVM::AbstractSyntaxTree::Node]
      # @rbs private: bool
      # @rbs included: bool
      # @rbs trailing_comment: String?
      def initialize: (t name, Array[RubyVM::AbstractSyntaxTree::Node] args, bool private, ?included: bool, ?trailing_comment: String?) -> void

      def private?: () -> bool
    end

    type t = :class_attribute | :delegate | :cattr_accessor | :mattr_accessor | :cattr_reader | :mattr_reader | :cattr_writer | :mattr_writer | :include

    METHODS: Array[t]

    alias process_orig process

    attr_reader comment_parser: CommentParser

    attr_reader method_calls: Hash[RBS::Namespace, Array[MethodCall]]

    attr_reader parse_included_block: bool

    @in_included_block: bool

    def initialize: (?parse_included_block: untyped) -> void

    # @rbs string: String
    def parse: (String string) -> void

    # @rbs override
    def process: ...

    # @rbs node: RubyVM::AbstractSyntaxTree::Node
    def trailing_comment_for: (RubyVM::AbstractSyntaxTree::Node node) -> String?

    # @rbs decls: Array[RBS::AST::Declarations::t | RBS::AST::Members::t]
    def private?: (Array[RBS::AST::Declarations::t | RBS::AST::Members::t] decls) -> bool

    private

    def in_included_block?: () -> bool

    # @rbs &block: () -> void
    def with_included_block: () { () -> void } -> void
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbs_activesupport-1.4.3 sig/rbs_activesupport/parser.rbs
rbs_activesupport-1.4.2 sig/rbs_activesupport/parser.rbs
rbs_activesupport-1.4.1 sig/rbs_activesupport/parser.rbs
rbs_activesupport-1.4.0 sig/rbs_activesupport/parser.rbs