Sha256: 3fd8881ba606e070daf41837d8ab28f55871ea48da4f354f9bffafc0e34e9649
Contents?: true
Size: 410 Bytes
Versions: 10
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module Synvert::Core # IfExistCondition checks if matching node exists in the node children. class Rewriter::IfExistCondition < Rewriter::Condition private # check if any child node matches the rules. # # @return [Boolean] def match? @node_query.query_nodes(target_node, including_self: false, stop_at_first_match: true).size > 0 end end end
Version data entries
10 entries across 10 versions & 1 rubygems