Sha256: 2cb35b144267e9ad8add2deb289981a639fb2bb76f9a1aa4f1e4bf963b8c9f9f

Contents?: true

Size: 1.37 KB

Versions: 12

Compression:

Stored size: 1.37 KB

Contents

use RBS::Environment

module Steep
  module Services
    class SignatureHelpProvider
      module MethodCall = TypeInference::MethodCall

      class Item
        attr_reader method_type: RBS::MethodType

        attr_reader comment: RBS::AST::Comment?

        attr_reader active_parameter: Integer?

        def initialize: (RBS::MethodType, RBS::AST::Comment?, Integer?) -> void

        def parameters: () -> Array[String]
      end

      attr_reader source: Source

      attr_reader path: Pathname

      attr_reader subtyping: Subtyping::Check

      attr_reader buffer: RBS::Buffer

      def env: () -> Environment

      def initialize: (source: Source, subtyping: Subtyping::Check) -> void

      # 1-origin line, 0-origin column
      #
      def run: (line: Integer, column: Integer) -> [Array[Item], Integer?]?

      private

      def active_parameter_for: (RBS::MethodType?, Array[Parser::AST::Node], Array[Parser::AST::Node]?, Parser::AST::Node) -> Integer?

      def arguments_for: (RBS::MethodType) -> Array[String]

      def last_argument_nodes_for: (argument_nodes: Array[Parser::AST::Node], line: Integer, column: Integer) -> Array[Parser::AST::Node]?

      def signature_help_for: (Parser::AST::Node, Array[Parser::AST::Node], Array[Parser::AST::Node]?, Typing) -> [Array[Item], Integer?]?

      def type_check!: (line: Integer, column: Integer) -> Typing
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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