lib/origen_verilog/processor.rb
# Override the default implementation of this, to allow arrays
# to be returned and when a handler returns nil the node is removed
Override the default implementation of this, to allow arrays
to be returned and when a handler returns nil the node is removed
Override the default implementation of this to allow arrays to be returned and when a handler returns nil the node is removed
def process(node)
      return if node.nil?
      return node unless node.respond_to?(:to_ast)
      node = node.to_ast
      on_handler = :"on_#{node.type}"
      if respond_to? on_handler
        new_node = send on_handler, node
      else
        new_node = handler_missing(node)
      end
      new_node if new_node
    end
def process ( node ) return if node . nil? return node unless node . respond_to? ( :to_ast ) node = node . to_ast on_handler = :" on_ #{ node . type } " if respond_to? on_handler new_node = send on_handler , node else new_node = handler_missing ( node ) end new_node if new_node end
Override the default implementation of this, to allow arrays
to be returned and when a handler returns nil the node is removed
Override the default implementation of this to allow arrays to be returned and when a handler returns nil the node is removed
# Invoke a specific handler
node
<not_specific>