vendor/bundle/ruby/3.0.0/gems/brakeman-5.2.2/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/sexp_matcher.rb
def satisfy? o
      # Future optimizations:
      # * Shortcut matching sibling
      subject_matches = index_matches(subject, o)
      return nil if subject_matches.empty?

      sibling_matches = index_matches(sibling, o)
      return nil if sibling_matches.empty?

      subject_matches.any? { |i1, _data_1|
        sibling_matches.any? { |i2, _data_2|
          distance ? (i2-i1 == distance) : i2 > i1
        }
      }
    end
##
# Satisfied if o contains +subject+ followed by +sibling+
Satisfied if o contains +subject+ followed by +sibling+
Satisfied if o contains + subject + followed by + sibling +
def satisfy? o
      subject_matches = index_matches(subject, o)
      return nil if subject_matches.empty?
      sibling_matches = index_matches(sibling, o)
      return nil if sibling_matches.empty?
      subject_matches.any? { |i1, _data_1|
        sibling_matches.any? { |i2, _data_2|
          distance ? (i2-i1 == distance) : i2 > i1
        }
      }
    end
def satisfy? o subject_matches = index_matches ( subject , o ) return nil if subject_matches . empty? sibling_matches = index_matches ( sibling , o ) return nil if sibling_matches . empty? subject_matches . any? { | i1 , _data_1 | sibling_matches . any? { | i2 , _data_2 | distance ? ( i2 - i1 == distance ) : i2 > i1 } } end
Satisfied if o contains +subject+ followed by +sibling+
Satisfied if o contains + subject + followed by + sibling +
# Future optimizations: # * Shortcut matching sibling
o