lib/theme_check/liquid_node.rb in theme-check-1.9.2 vs lib/theme_check/liquid_node.rb in theme-check-1.10.0

- old
+ new

@@ -182,9 +182,14 @@ # and `after_<type_name>` check methods. def type_name @type_name ||= StringHelpers.underscore(StringHelpers.demodulize(@value.class.name)).to_sym end + def filters + raise TypeError, "Attempting to lookup filters of #{type_name}. Only variables have filters." unless variable? + @value.filters + end + def source theme_file&.source end def block_start_markup