Sha256: 374a993537e24ab893e5304ca90ab8d0737b2863ed2ec63390dc160c2e1f99e2
Contents?: true
Size: 429 Bytes
Versions: 10
Compression:
Stored size: 429 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 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