lib/theme_check/language_server/variable_lookup_finder.rb
# We want the last thing in variable.filters which is at most
# an array that looks like [name, positional_args, hash_arg]
We want the last thing in variable.filters which is at most
an array that looks like [name, positional_args, hash_arg]
We want the last thing in variable . filters which is at most an array that looks like [ name positional_args hash_arg ]
def last_filter_argument(filters)
        filter = filters.last
        return filter[2].values.last if filter.size == 3
        return filter[1].last if filter.size == 2
        nil
      end
def last_filter_argument ( filters ) filter = filters . last return filter [ 2 ] . values . last if filter . size == 3 return filter [ 1 ] . last if filter . size == 2 nil end
We want the last thing in variable.filters which is at most
an array that looks like [name, positional_args, hash_arg]
We want the last thing in variable . filters which is at most an array that looks like [ name positional_args hash_arg ]
filters