Sha256: 3e4c8ffd2edd90bc4fe7d0f43be2ec1e13d9bbcf7b5d63db52c3c645456f288e

Contents?: true

Size: 1.3 KB

Versions: 8

Compression:

Stored size: 1.3 KB

Contents

module Yoda
  module Model
    module FunctionSignatures
      # @abstract
      class Base
        # @abstract
        # @return [Types::FunctionType]
        def type
          fail NotImplementedError
        end

        # @abstract
        # @return [Symbol]
        def visibility
          fail NotImplementedError
        end

        # @abstract
        # @return [String]
        def name
          fail NotImplementedError
        end

        # @abstract
        # @return [String]
        def namespace_path
          fail NotImplementedError
        end

        # @abstract
        # @return [String]
        def document
          fail NotImplementedError
        end

        # @abstract
        # @return [ParameterList]
        def parameters
          fail NotImplementedError
        end

        # @abstract
        # @return [Array<(String, Integer, Integer)>]
        def sources
          fail NotImplementedError
        end

        # @return [String]
        def to_s
          formatter.to_s
        end

        # @abstract
        # @return [Types::Base, nil]
        def parameter_type_of(param)
          fail NotImplementedError
        end

        private

        # @return [Formatter]
        def formatter
          @formatter ||= Formatter.new(self)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yoda-language-server-0.7.2 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.7.1 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.7.0 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.6.2 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.6.1 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.6.0 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.5.0 lib/yoda/model/function_signatures/base.rb
yoda-language-server-0.4.0 lib/yoda/model/function_signatures/base.rb