Module: Tapioca::Compilers::SymbolTable::SymbolLoader

Extended by:
T::Sig
Defined in:
lib/tapioca/compilers/symbol_table/symbol_loader.rb

Defined Under Namespace

Classes: SymbolTableParser

Constant Summary collapse

SORBET =
Pathname.new(Gem::Specification.find_by_name("sorbet-static").full_gem_path) / "libexec" / "sorbet"

Class Method Summary collapse

Class Method Details

.ignore_symbol?(symbol) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
26
# File 'lib/tapioca/compilers/symbol_table/symbol_loader.rb', line 23

def ignore_symbol?(symbol)
  symbol = symbol[2..-1] if symbol.start_with?("::")
  ignored_symbols.include?(symbol)
end

.list_from_paths(paths) ⇒ Object



19
20
21
# File 'lib/tapioca/compilers/symbol_table/symbol_loader.rb', line 19

def list_from_paths(paths)
  load_symbols(paths.map(&:to_s))
end