Sha256: eddf0dca71bbd6a8a42c96b8301347bd8b383a262644a1eab01b2f93c81cb56a

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 KB

Contents

module Steep
  module Services
    class StatsCalculator
      class SuccessStats
        attr_reader target: Project::Target

        attr_reader path: Pathname

        attr_reader typed_calls_count: Integer

        attr_reader untyped_calls_count: Integer

        attr_reader error_calls_count: Integer

        def initialize: (target: Project::Target, path: Pathname, typed_calls_count: Integer, untyped_calls_count: Integer, error_calls_count: Integer) -> void

        def as_json: () -> Hash[Symbol, untyped]
      end

      class ErrorStats
        attr_reader target: Project::Target

        attr_reader path: Pathname

        def initialize: (target: Project::Target, path: Pathname) -> void

        def as_json: () -> Hash[Symbol, untyped]
      end

      type stats = SuccessStats | ErrorStats

      attr_reader service: TypeCheckService

      def initialize: (service: TypeCheckService) -> void

      def project: () -> Project

      def calc_stats: (Project::Target target, file: TypeCheckService::SourceFile) -> stats
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/services/stats_calculator.rbs
steep-1.7.0.dev.2 sig/steep/services/stats_calculator.rbs
steep-1.7.0.dev.1 sig/steep/services/stats_calculator.rbs
steep-1.6.0 sig/steep/services/stats_calculator.rbs
steep-1.6.0.pre.4 sig/steep/services/stats_calculator.rbs
steep-1.6.0.pre.3 sig/steep/services/stats_calculator.rbs
steep-1.6.0.pre.2 sig/steep/services/stats_calculator.rbs
steep-1.6.0.pre.1 sig/steep/services/stats_calculator.rbs