Sha256: 92d71aa862b7e3d119cbd5fb68fc48d50a472ec86a4a31619e86bd5379350596

Contents?: true

Size: 709 Bytes

Versions: 616

Compression:

Stored size: 709 Bytes

Contents

# frozen_string_literal: true
# typed: true

module T::Private
  module Compiler
    # If this code ever runs, the caller is running interpreted (or the
    # compiler didn't see the call to `running_compiled?` statically.)
    #
    # The Sorbet Compiler replaces calls to this method unconditionally (no
    # runtime guards) to return `true` when compiling a file.
    def self.running_compiled?
      false
    end

    # Returns `nil` because the compiler isn't running.
    #
    # The Sorbet Compiler replaces calls to this method unconditionally (no
    # runtime guards) to return a String showing the Sorbet Compiler's version
    # string.
    def self.compiler_version
      nil
    end
  end
end

Version data entries

616 entries across 610 versions & 3 rubygems

Version Path
sorbet-runtime-0.5.11361 lib/types/private/compiler.rb
sorbet-runtime-0.5.11358 lib/types/private/compiler.rb
sorbet-runtime-0.5.11357 lib/types/private/compiler.rb
sorbet-runtime-0.5.11353 lib/types/private/compiler.rb
sorbet-runtime-0.5.11352 lib/types/private/compiler.rb
sorbet-runtime-0.5.11351 lib/types/private/compiler.rb
sorbet-runtime-0.5.11350 lib/types/private/compiler.rb
sorbet-runtime-0.5.11349 lib/types/private/compiler.rb
sorbet-runtime-0.5.11347 lib/types/private/compiler.rb
sorbet-runtime-0.5.11346 lib/types/private/compiler.rb
sorbet-runtime-0.5.11342 lib/types/private/compiler.rb
sorbet-runtime-0.5.11340 lib/types/private/compiler.rb
sorbet-runtime-0.5.11338 lib/types/private/compiler.rb
sorbet-runtime-0.5.11336 lib/types/private/compiler.rb
sorbet-runtime-0.5.11332 lib/types/private/compiler.rb
sorbet-runtime-0.5.11330 lib/types/private/compiler.rb
sorbet-runtime-0.5.11327 lib/types/private/compiler.rb
sorbet-runtime-0.5.11323 lib/types/private/compiler.rb
sorbet-runtime-0.5.11319 lib/types/private/compiler.rb
sorbet-runtime-0.5.11318 lib/types/private/compiler.rb