lib/tapioca/compilers/symbol_table/symbol_loader.rb in tapioca-0.2.0 vs lib/tapioca/compilers/symbol_table/symbol_loader.rb in tapioca-0.2.1
- old
+ new
@@ -77,10 +77,13 @@
name = child.fetch("name")
name = name.fetch("name") if name.is_a?(Hash)
next if kind.nil? || name.nil?
- next unless %w[CLASS STATIC_FIELD].include?(kind)
+ # TODO: CLASS is removed since v0.4.4730 of Sorbet
+ # but keeping here for backward compatibility. Remove
+ # once the minimum version is moved past that.
+ next unless %w[CLASS CLASS_OR_MODULE STATIC_FIELD].include?(kind)
next if name =~ /[<>()$]/
next if name =~ /^[0-9]+$/
next if name == "T::Helpers"
parents << name