Sha256: f8f41cd7a70527a483a6423e0af4fca557c55b672efce12b6d118afa877762bf
Contents?: true
Size: 436 Bytes
Versions: 72
Compression:
Stored size: 436 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 # check if none of child node matches the rules. def match? match = false @instance.current_node.recursive_children do |child_node| match ||= child_node&.match?(@rules) end !match end end end
Version data entries
72 entries across 72 versions & 1 rubygems