Sha256: 2c151459676bf18b0ff14267210b17caed15414eef9559f11f007bf9641883b8
Contents?: true
Size: 419 Bytes
Versions: 73
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true module Synvert::Core # UnlessExistCondition checks if matching node doesn't exist in the node children. class Rewriter::UnlessExistCondition < Rewriter::Condition private # check if none of child node matches. # # 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
73 entries across 73 versions & 1 rubygems