module T::Private::Compiler

Public Class Methods

compiler_version() click to toggle source

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.

# File lib/types/private/compiler.rb, line 20
def self.compiler_version
  nil
end
running_compiled?() click to toggle source

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.

# File lib/types/private/compiler.rb, line 11
def self.running_compiled?
  false
end