Sha256: 8fe08fd164fb8e05113340600c04b2ccd5f8432398e20c248795f88833da7305
Contents?: true
Size: 1.99 KB
Versions: 7
Compression:
Stored size: 1.99 KB
Contents
# frozen_string_literal: true require "rbs/version" require "set" require "json" require "pathname" require "pp" require "ripper" require "logger" require "tsort" require "rbs/errors" require "rbs/buffer" require "rbs/namespace" require "rbs/type_name" require "rbs/types" require "rbs/method_type" require "rbs/ast/type_param" require "rbs/ast/directives" require "rbs/ast/declarations" require "rbs/ast/members" require "rbs/ast/annotation" require "rbs/environment" require "rbs/environment/use_map" require "rbs/environment_loader" require "rbs/builtin_names" require "rbs/definition" require "rbs/definition_builder" require "rbs/definition_builder/ancestor_builder" require "rbs/definition_builder/method_builder" require "rbs/variance_calculator" require "rbs/substitution" require "rbs/constant" require "rbs/resolver/constant_resolver" require "rbs/resolver/type_name_resolver" require "rbs/ast/comment" require "rbs/writer" require "rbs/prototype/helpers" require "rbs/prototype/rbi" require "rbs/prototype/rb" require "rbs/prototype/runtime" require "rbs/prototype/node_usage" require "rbs/environment_walker" require "rbs/vendorer" require "rbs/validator" require "rbs/factory" require "rbs/repository" require "rbs/ancestor_graph" require "rbs/locator" require "rbs/type_alias_dependency" require "rbs/type_alias_regularity" require "rbs/collection" require "rbs_extension" require "rbs/parser_aux" require "rbs/location_aux" module RBS class <<self attr_reader :logger_level attr_reader :logger_output def logger @logger ||= Logger.new(logger_output || STDERR, level: logger_level || Logger::WARN, progname: "rbs") end def logger_output=(val) @logger = nil @logger_output = val end def logger_level=(level) @logger_level = level @logger = nil end def print_warning() @warnings ||= Set[] message = yield() unless @warnings.include?(message) @warnings << message logger.warn { message } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
rbs-3.0.4 | lib/rbs.rb |
rbs-3.0.3 | lib/rbs.rb |
rbs-3.0.2 | lib/rbs.rb |
rbs-3.0.1 | lib/rbs.rb |
rbs-3.0.0 | lib/rbs.rb |
rbs-3.0.0.dev.3 | lib/rbs.rb |
rbs-3.0.0.dev.2 | lib/rbs.rb |